mawww / kakoune

mawww's experiment for a better code editor
http://kakoune.org
The Unlicense
9.9k stars 713 forks source link

goto and view keybindings don't work properly when there is a wrap highlighter [BUG] #5146

Closed QiBaobin closed 5 months ago

QiBaobin commented 5 months ago

Version of Kakoune

master branch

Reproducer

run :add-highlighter global/ wrap -word, then open a file contains some very long lines. Go to one of those line, run gc, gb, vc, vb etc.

Outcome

most of those key bindings don't work visually

Expectations

wrap lines are treated like real lines for those modes?

Additional information

Mac OSX, and use master branch.

Screwtapello commented 5 months ago

This is the same underlying problem as #3919 and #1517.

That is, word wrapping happens downstream of Kakoune's calculations about what is visible on-screen.

QiBaobin commented 5 months ago

cool, let me close this one.