forked from neovim/neovim
-
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.
feat(:source, nvim_exec): line numbers in :verbose output
Support showing line numbers for Vim script sourced anonymously via :source (no args) and nvim_exec. Do not offset the line number shown from anonymous scripts with the line number of an enclosing script. For example, this could produce incorrect numbers in situations where we have escaped NLs: ```vim echo "hi" call nvim_exec("\n\n\nset cul", 1) verbose set cul? ``` Would print "line 6" (preferably "line 5"), but it's actually on line 2... TODO: ideally, we should say something instead, like: "Last set from anonymous :source (script id X) line 4 in script.vim line 2" TODO: see verbose_spec.lua comment, anonymous sources in Lua need to be fixed so they can be <SID>ed like regular anon sources, but neovim#15079 broke that...
- Loading branch information
Showing
4 changed files
with
68 additions
and
16 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
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