Skip to content

Commit e75d3ab

Browse files
zephylacpchampio
authored andcommitted
chore: fix wrong behavior (#226)
1 parent 4707364 commit e75d3ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

textinput_model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (p *textinputPlugin) sliceLeftWord() {
156156
}
157157

158158
func (p *textinputPlugin) sliceLeftLine() {
159-
p.word = p.word[:0]
159+
p.word = p.word[p.selectionBase:]
160160
p.selectionBase = 0
161161
p.selectionExtent = 0
162162
}

0 commit comments

Comments
 (0)