mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
vim-patch:8.2.1653: expand('<stack>') does not include the final line number
Problem: Expand('<stack>') does not include the final line number.
Solution: Add the line nuber. (closes vim/vim#6927)
4f25b1aba0
This commit is contained in:
@@ -7719,6 +7719,7 @@ ssize_t find_cmdline_var(const char_u *src, size_t *usedlen)
|
||||
/// '<cexpr>' to C-expression under the cursor
|
||||
/// '<cfile>' to path name under the cursor
|
||||
/// '<sfile>' to sourced file name
|
||||
/// '<stack>' to call stack
|
||||
/// '<slnum>' to sourced file line number
|
||||
/// '<afile>' to file name for autocommand
|
||||
/// '<abuf>' to buffer number for autocommand
|
||||
@@ -7913,7 +7914,7 @@ char_u *eval_vars(char_u *src, char_u *srcstart, size_t *usedlen, linenr_T *lnum
|
||||
|
||||
case SPEC_SFILE: // file name for ":so" command
|
||||
case SPEC_STACK: // call stack
|
||||
result = estack_sfile(spec_idx == SPEC_SFILE);
|
||||
result = estack_sfile(spec_idx == SPEC_SFILE ? ESTACK_SFILE : ESTACK_STACK);
|
||||
if (result == NULL) {
|
||||
*errormsg = spec_idx == SPEC_SFILE
|
||||
? _("E498: no :source file name to substitute for \"<sfile>\"")
|
||||
|
Reference in New Issue
Block a user