Go to normal mode when backspacing on empty prompt (#836)
This matches up with vim's behavior.
This commit is contained in:
parent
2104a501aa
commit
36a7a18316
1
eval.go
1
eval.go
@ -1916,6 +1916,7 @@ func (e *callExpr) eval(app *app, args []string) {
|
|||||||
update(app)
|
update(app)
|
||||||
case "cmd-delete-back":
|
case "cmd-delete-back":
|
||||||
if len(app.ui.cmdAccLeft) == 0 {
|
if len(app.ui.cmdAccLeft) == 0 {
|
||||||
|
normal(app)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
app.ui.cmdAccLeft = app.ui.cmdAccLeft[:len(app.ui.cmdAccLeft)-1]
|
app.ui.cmdAccLeft = app.ui.cmdAccLeft[:len(app.ui.cmdAccLeft)-1]
|
||||||
|
Loading…
Reference in New Issue
Block a user