Mercurial > vim
comparison src/ex_eval.c @ 22208:a607f02fd17a v8.2.1653
patch 8.2.1653: expand('<stack>') does not include the final line number
Commit: https://github.com/vim/vim/commit/4f25b1aba050b85fa97ca2316aa04dd4b0b22530
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 10 19:25:05 2020 +0200
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 https://github.com/vim/vim/issues/6927)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 10 Sep 2020 19:30:05 +0200 |
parents | 7449921216bc |
children | 86a115a80262 |
comparison
equal
deleted
inserted
replaced
22207:d32eb3b1201e | 22208:a607f02fd17a |
---|---|
288 (*msg_list)->throw_msg = tmsg; | 288 (*msg_list)->throw_msg = tmsg; |
289 } | 289 } |
290 | 290 |
291 // Get the source name and lnum now, it may change before | 291 // Get the source name and lnum now, it may change before |
292 // reaching do_errthrow(). | 292 // reaching do_errthrow(). |
293 elem->sfile = estack_sfile(FALSE); | 293 elem->sfile = estack_sfile(ESTACK_NONE); |
294 elem->slnum = SOURCING_LNUM; | 294 elem->slnum = SOURCING_LNUM; |
295 } | 295 } |
296 } | 296 } |
297 } | 297 } |
298 return TRUE; | 298 return TRUE; |
547 entry->sfile = NULL; | 547 entry->sfile = NULL; |
548 excp->throw_lnum = entry->slnum; | 548 excp->throw_lnum = entry->slnum; |
549 } | 549 } |
550 else | 550 else |
551 { | 551 { |
552 excp->throw_name = estack_sfile(FALSE); | 552 excp->throw_name = estack_sfile(ESTACK_NONE); |
553 if (excp->throw_name == NULL) | 553 if (excp->throw_name == NULL) |
554 excp->throw_name = vim_strsave((char_u *)""); | 554 excp->throw_name = vim_strsave((char_u *)""); |
555 if (excp->throw_name == NULL) | 555 if (excp->throw_name == NULL) |
556 { | 556 { |
557 if (should_free) | 557 if (should_free) |