Given some text:
Alice was beginning to get very tired of sitting by her sister on the bank, and
of having nothing to do: once or twice she had peeped into the book her sister
was reading, but it had no pictures or conversations in it, “and what is the use
of a book,” thought Alice “without pictures or conversations?”
jVjzf)gm, note that :set ruler shows 59-1k, the cursor navigates to line 1, column 1When typing gm<Up> I expect Vim to use the current column (59) on the new line
Similarly, if using g^, the ruler shows 5-1 but hitting <Up> moves to column 1. However, g$ shows 83-1 in the ruler and hitting <Up> will move to column 83 on line 1, as expected.
The column is remembered and used if typing gm<Right>, g^<Right> or g$<Right>. The fold is opened and the caret is correctly moved.
9.0 (2022 Jun 28, compiled Oct 19 2022 18:24:48)
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Oct 19 2022 18:24:48)
macOS version - x86_64
Included patches: 1-800
Compiled by Homebrew
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I looked into this a bit but will leave the rest to someone else, since it will take me too much time to understand everything and create a thorough patch.
Here are my findings, though:
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Updating w_curswant every time adds over head (quite a lot for a long line).
So, the solution could be to call update_curswant_force() if "curwin->w_cline"_folded is set.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #11596 as completed via 9848fac.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()