Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative line number motions do not work correctly when word wrap is enabled #6469

Open
jamessimas opened this issue Aug 30, 2024 · 1 comment

Comments

@jamessimas
Copy link

Description of the bug

With the following conditions...

  • Vintage mode enabled
  • Relative line numbers enabled ("relative_line_numbers": true)
  • Word Wrap enabled

...relative line number motions do not work correctly. Rather than taking me N lines up/down, they take me N wrapped-lines up/down. (See screenshot for exact behavior description. It's hard to describe in words.)

This happens every time lines wrap and there is no workaround that I am aware of.

This works as expected in both VIM 9.0 and NeoVIM v0.10.1.

CleanShot 2024-08-30 at 10 43 26

Steps to reproduce

  1. Open a plain text which has long lines file in Sublime Text
  2. Enable Vintage mode
  3. Enable relative line numbers ("relative_line_numbers": true)
  4. Enable Word Wrap
  5. Attempt to use relative line motions (e.g., 2j, 4k, etc.) to move. Notice that they do not work as expected.

Expected behavior

When using relative line motions to navigate when Word Wrap is enabled, the motions will take me to the correct line.

Actual behavior

When using relative line motions to navigate when Word Wrap is enabled, the line motions take me to the wrong line every time.

Sublime Text build number

4180

Operating system & version

macOS 14.6.1

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

@TerminalFi
Copy link

@jamessimas i recommend you try NeoVintageous in the mean time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants