]> git.ipfire.org Git - thirdparty/vim.git/commit
man.vim: Uniformly place cursor at the same column with `Ctrl-t` (#12608)
authorgoweol <goweol@gmail.com>
Thu, 17 Aug 2023 21:12:42 +0000 (06:12 +0900)
committerGitHub <noreply@github.com>
Thu, 17 Aug 2023 21:12:42 +0000 (23:12 +0200)
commit6e5ab2b994c3356fe91e8f9b701df52146fc0985
tree6b28ef7d4c2933c10a9f385f253cb434c9d767e5
parent008c91537b55835aa91cd8fbe1a139256581da31
man.vim: Uniformly place cursor at the same column with `Ctrl-t` (#12608)

Functions col and cursor count each tab (0x9) as a byte, and
are complementary. On the other hand, the | command motion
takes into consideration how many screen columns a tab does
occupy and may move cursor to a column closer to the start
of line than col would report at that position.

The provided changes prefer the cursor function to the | command.

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
runtime/autoload/dist/man.vim