diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-26 15:37:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-26 15:37:02 +0200 |
commit | a5d0423fa16f18b4576a2a07e50034e489587a7d (patch) | |
tree | 67bfe997079bb1a9f17db6a829b29d6369a922a3 /runtime/doc | |
parent | d66cdcd43a598825add743bc95642cd8ed705252 (diff) | |
download | vim-git-a5d0423fa16f18b4576a2a07e50034e489587a7d.tar.gz |
patch 8.2.1297: when a test fails it's often not easy to see wherev8.2.1297
Problem: When a test fails it's often not easy to see what the call stack
is.
Solution: Add more entries from the call stack in the exception message.
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/cmdline.txt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index ecaa73e89..8e4e2a018 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -876,7 +876,7 @@ Also see |`=|. *:<cword>* *<cword>* *:<cWORD>* *<cWORD>* *:<cexpr>* *<cexpr>* *:<cfile>* *<cfile>* *:<afile>* *<afile>* *:<abuf>* *<abuf>* - *:<amatch>* *<amatch>* + *:<amatch>* *<amatch>* *:<stack>* *<stack>* *:<sfile>* *<sfile>* *:<slnum>* *<slnum>* *:<sflnum>* *<sflnum>* *E499* *E500* Note: these are typed literally, they are not special keys! @@ -903,12 +903,16 @@ Note: these are typed literally, they are not special keys! events). <sfile> When executing a ":source" command, is replaced with the file name of the sourced file. *E498* - When executing a function, is replaced with: - "function {function-name}[{lnum}]" - function call nesting is indicated like this: - "function {function-name1}[{lnum}]..{function-name2}[{lnum}]" + When executing a function, is replaced with the call stack, + as with <stack> (this is for backwards compatibility, using + <stack> is preferred). Note that filename-modifiers are useless when <sfile> is - used inside a function. + not used inside a script. + <stack> is replaced with the call stack, using + "function {function-name}[{lnum}]" for a function line + and "script {file-name}[{lnum}]" for a script line, and + ".." in between items. E.g.: + "function {function-name1}[{lnum}]..{function-name2}[{lnum}]" <slnum> When executing a ":source" command, is replaced with the line number. *E842* When executing a function it's the line number relative to |