Skip to content

Commit 0abc6e4

Browse files
committed
patch 8.2.2553: Vim9: Cannot put "|" after "{"
Problem: Vim9: Cannot put "|" after "{". Solution: Add the EX_TRLBAR flag. (issue #7904)
1 parent 9f646c2 commit 0abc6e4

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/ex_cmds.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ EXCMD(CMD_at, "@", ex_at,
18201820
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK|EX_NONWHITE_OK,
18211821
ADDR_LINES),
18221822
EXCMD(CMD_block, "{", ex_block, // not found normally
1823-
0,
1823+
EX_TRLBAR,
18241824
ADDR_NONE),
18251825
EXCMD(CMD_endblock, "}", ex_endblock,
18261826
EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,

src/ex_eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ ex_eval(exarg_T *eap)
912912
enter_block(cstack_T *cstack)
913913
{
914914
++cstack->cs_idx;
915-
if (in_vim9script())
915+
if (in_vim9script() && current_sctx.sc_sid > 0)
916916
{
917917
scriptitem_T *si = SCRIPT_ITEM(current_sctx.sc_sid);
918918

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2553,
753755
/**/
754756
2552,
755757
/**/

0 commit comments

Comments
 (0)