comparison src/menu.c @ 14700:0a3b9ecf7cb8 v8.1.0362

patch 8.1.0362: cannot get the script line number when executing a function commit https://github.com/vim/vim/commit/f29c1c6aa3f365c025890fab5fb9efbe88eb1761 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 10 21:05:02 2018 +0200 patch 8.1.0362: cannot get the script line number when executing a function Problem: Cannot get the script line number when executing a function. Solution: Store the line number besides the script ID. (Ozaki Kiichi, closes #3362) Also display the line number with ":verbose set".
author Christian Brabandt <cb@256bit.org>
date Mon, 10 Sep 2018 21:15:07 +0200
parents d21899f0d850
children 405309f9dd13
comparison
equal deleted inserted replaced
14699:2d2a36710dad 14700:0a3b9ecf7cb8
2257 int idx = -1; 2257 int idx = -1;
2258 2258
2259 /* Use the Insert mode entry when returning to Insert mode. */ 2259 /* Use the Insert mode entry when returning to Insert mode. */
2260 if (restart_edit 2260 if (restart_edit
2261 #ifdef FEAT_EVAL 2261 #ifdef FEAT_EVAL
2262 && !current_SID 2262 && !current_sctx.sc_sid
2263 #endif 2263 #endif
2264 ) 2264 )
2265 { 2265 {
2266 mode = (char_u *)"Insert"; 2266 mode = (char_u *)"Insert";
2267 idx = MENU_INDEX_INSERT; 2267 idx = MENU_INDEX_INSERT;
2331 /* When executing a script or function execute the commands right now. 2331 /* When executing a script or function execute the commands right now.
2332 * Also for the window toolbar. 2332 * Also for the window toolbar.
2333 * Otherwise put them in the typeahead buffer. */ 2333 * Otherwise put them in the typeahead buffer. */
2334 if (eap == NULL 2334 if (eap == NULL
2335 #ifdef FEAT_EVAL 2335 #ifdef FEAT_EVAL
2336 || current_SID != 0 2336 || current_sctx.sc_sid != 0
2337 #endif 2337 #endif
2338 ) 2338 )
2339 { 2339 {
2340 save_state_T save_state; 2340 save_state_T save_state;
2341 2341