-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remember when options where reset because of the paste/binary option
Mention if depending options for 'binary' or 'paste' have been reset indirectly. Add a test to verify it works. Also noticed as small bug, that the global option value for expandtab was not reset when paste option is set, so fix that while at it. Regarding the test: for some reason, setting paste does somehow affect how the internal terminal vim renders the output so we cannot directly use term_getline(), it will always return an empty vim line. Perhaps Vim does not correctly redraw when paste option is in affect (probably to make processing faster). Therefore, we will redir the output and post-process it a bit (removing path components, removing empty lines) so that it is easier to scrape the actual buffer line later. fixes: vim#12837
- Loading branch information
Showing
2 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters