fix "slice bounds out of range" in cmd-delete-word-back (#1976)
Co-authored-by: yarik <dazzywi@github.com>
This commit is contained in:
1 parent
6616c9c119
commit
ce13438ab4
1 file changed
+1
-1
@@ -2181,7 +2181,7 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
}
|
||||
ind := locs[len(locs)-1][3]
|
||||
app.ui.cmdYankBuf = []rune(string(app.ui.cmdAccLeft)[ind:])
|
||||
app.ui.cmdAccLeft = app.ui.cmdAccLeft[:ind]
|
||||
app.ui.cmdAccLeft = []rune(string(app.ui.cmdAccLeft)[:ind])
|
||||
update(app)
|
||||
case "cmd-uppercase-word":
|
||||
if len(app.ui.cmdAccRight) == 0 {
|
||||
|
||||
Reference in new issue
Block a user