comparison src/globals.h @ 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 f1b7d308de2f
children 193471015e1a
comparison
equal deleted inserted replaced
14699:2d2a36710dad 14700:0a3b9ecf7cb8
323 */ 323 */
324 EXTERN int may_garbage_collect INIT(= FALSE); 324 EXTERN int may_garbage_collect INIT(= FALSE);
325 EXTERN int want_garbage_collect INIT(= FALSE); 325 EXTERN int want_garbage_collect INIT(= FALSE);
326 EXTERN int garbage_collect_at_exit INIT(= FALSE); 326 EXTERN int garbage_collect_at_exit INIT(= FALSE);
327 327
328 /* ID of script being sourced or was sourced to define the current function. */ 328 // Script CTX being sourced or was sourced to define the current function.
329 EXTERN scid_T current_SID INIT(= 0); 329 EXTERN sctx_T current_sctx INIT(= {0 COMMA 0});
330 #endif 330 #endif
331 331
332 EXTERN int did_source_packages INIT(= FALSE); 332 EXTERN int did_source_packages INIT(= FALSE);
333 333
334 /* Magic number used for hashitem "hi_key" value indicating a deleted item. 334 /* Magic number used for hashitem "hi_key" value indicating a deleted item.