Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore cursor position after expr mapping
Fix issue (#12707) where cursor is not restored after an expression mapping. Save the cursor position before evaluating the mapped expression, restore it after. Also, redraw command line after expression mappings. Evaluating an expression can wreak all sorts of havoc on the command line, to avoid drawing glitches such as those in #12707, it's best to redraw it. Add tests for: - Cursor position restored after :map expr - Cursor position restored after :imap expr - Command line restored after :cmap expr - Error in :cmap expr handled correctly
- Loading branch information
Showing
3 changed files
with
150 additions
and
6 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
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