fix: align Vim indicator and restore Normal Escape dismissal
This commit is contained in:
@@ -124,7 +124,7 @@ extension NotesTextView {
|
||||
|
||||
@discardableResult
|
||||
func handleVimEscape() -> Bool {
|
||||
guard vimEnabled, !hasMarkedText() else { return false }
|
||||
guard vimEnabled, vimState.mode != .normal, !hasMarkedText() else { return false }
|
||||
let buffer = VimBuffer(attributedString())
|
||||
var head = vimState.head ?? buffer.index(selectedRange().location)
|
||||
if vimState.mode == .insert && head > buffer.lineStart(head) { head -= 1 }
|
||||
|
||||
Reference in New Issue
Block a user