fix(view): constrain cursor in insert mode #93
No reviewers
Labels
No labels
autorelease: pending
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream/digest
upstream/pr
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/canola.nvim!93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/constrain-cursor-insert"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
constrain_cursoronly fired onCursorMovedandModeChanged, so arrow key navigation in insert mode could move the cursor into the concealed ID prefix area.Solution
Add
CursorMovedIto the autocmd event list. Theconstrain_cursor()function is already mode-agnostic.Fixes upstream stevearc/oil.nvim#371.