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

long wrapped line at bottom won't visually unselect #4457

Open
kevinlawler opened this issue May 30, 2019 · 3 comments
Open

long wrapped line at bottom won't visually unselect #4457

kevinlawler opened this issue May 30, 2019 · 3 comments

Comments

@kevinlawler
Copy link

kevinlawler commented May 30, 2019

Describe the bug

Visually selecting from the bottom up, while wordwrap is on, and then unselecting still leaves the appearance of selected text if the last displayed line extends beyond the length of the window.

To Reproduce

  1. Load this file long.txt
  2. :set wrap
  3. :set display+=lastline
  4. :set lines=25
  5. :set columns=69
  6. Scroll to bottom, move cursor to last character. Using v, enter visual mode and select from the bottom of the file to the top. Scroll to top, select to first character. Last line should extend beyond the length of the screen.
  7. Unselect using <Esc>
  8. Observe artifact (Done)
  9. <C-L> to clear

Expected behavior
Appearance of selection should not be there

Screenshots
long

Environment (please complete the following information):
Confirmed on multiple:
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 22 2019 19:03:04)
Included patches: 1-503, 505-680, 682-1283
MacVim Custom Version 8.1.950 (155)
NVIM v0.3.4

  • MacOS 10.14.5
  • MacOS Terminal Version 2.9.5 (421.2)
@kevinlawler kevinlawler changed the title long lines and wrap visually long wrapped line at bottom won't visually unselect May 30, 2019
@brammool
Copy link
Contributor

Some pieces are missing. At least need to set 'display' to "lastline".
Please start with "vim --clean".
Also mention how you move to the position where you start Visual mode (for me it makes the whole line appear).

@kevinlawler
Copy link
Author

Updated based on input.

@brammool
Copy link
Contributor

Thanks for the update, now I reproduce the problem.

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