Mercurial > vim
comparison src/structs.h @ 24471:baf75c8e1b7b v8.2.2775
patch 8.2.2775: Vim9: wrong line number used for some commands
Commit: https://github.com/vim/vim/commit/c70fe460b09f6182a13e4385f3232df4fdcd0741
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 17 17:59:19 2021 +0200
patch 8.2.2775: Vim9: wrong line number used for some commands
Problem: Vim9: wrong line number used for some commands.
Solution: For :exe, :echo and the like use the line number of the start of
the command. When calling a function set the line number in the
script context.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Apr 2021 18:00:04 +0200 |
parents | a2a7d2d6e724 |
children | 3bfec39ce31c |
comparison
equal
deleted
inserted
replaced
24470:9e75cdb46bc5 | 24471:baf75c8e1b7b |
---|---|
2043 #endif | 2043 #endif |
2044 AutoPatCmd *aucmd; // autocommand info | 2044 AutoPatCmd *aucmd; // autocommand info |
2045 except_T *except; // exception info | 2045 except_T *except; // exception info |
2046 } es_info; | 2046 } es_info; |
2047 #if defined(FEAT_EVAL) | 2047 #if defined(FEAT_EVAL) |
2048 scid_T es_save_sid; // saved sc_sid when calling function | 2048 sctx_T es_save_sctx; // saved current_sctx when calling function |
2049 #endif | 2049 #endif |
2050 } estack_T; | 2050 } estack_T; |
2051 | 2051 |
2052 // Information returned by get_tty_info(). | 2052 // Information returned by get_tty_info(). |
2053 typedef struct { | 2053 typedef struct { |