The popup would have the sidescrolloff set in Neovim's config, leading to words being truncated and looking off. Now the setting is put to 0 for the popup window to prevent the issue.
There was also an issue with the width of the popup if the word to be renamed was larger than the default width, which lead to 1 character being truncated. This was fixed by adding + 1 to the word length.
Closes: GH-101
Proposed changes
set sidescrolloff to 0 in _setup_window
add + 1 to the current word length when setting the popup width based on it
add constant for sidescrolloff
Test plan
Existing tests are updated to validate the new functionality.
Motivation
The popup would have the
sidescrolloff
set in Neovim's config, leading to words being truncated and looking off. Now the setting is put to 0 for the popup window to prevent the issue.There was also an issue with the width of the popup if the word to be renamed was larger than the default width, which lead to 1 character being truncated. This was fixed by adding
+ 1
to the word length.Closes: GH-101
Proposed changes
sidescrolloff
to 0 in_setup_window
+ 1
to the current word length when setting the popup width based on itsidescrolloff
Test plan
Existing tests are updated to validate the new functionality.