fix: align Vim indicator and restore Normal Escape dismissal

This commit is contained in:
2026-10-22 12:08:33 +02:00
parent 615cbd6eb6
commit 923425826d
4 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -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 }