mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3279: Vim9: cannot use block in cmdline window
Problem: Vim9: cannot use block in cmdline window. Solution: Add EX_CMDWIN to the CMD_block flags. (closes #8689)
This commit is contained in:
parent
7bf9a07bd7
commit
2c70711e3f
@ -1853,7 +1853,7 @@ EXCMD(CMD_at, "@", ex_at,
|
|||||||
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK|EX_NONWHITE_OK,
|
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK|EX_NONWHITE_OK,
|
||||||
ADDR_LINES),
|
ADDR_LINES),
|
||||||
EXCMD(CMD_block, "{", ex_block, // not found normally
|
EXCMD(CMD_block, "{", ex_block, // not found normally
|
||||||
EX_TRLBAR|EX_LOCK_OK,
|
EX_TRLBAR|EX_LOCK_OK|EX_CMDWIN,
|
||||||
ADDR_NONE),
|
ADDR_NONE),
|
||||||
EXCMD(CMD_endblock, "}", ex_endblock,
|
EXCMD(CMD_endblock, "}", ex_endblock,
|
||||||
EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
|
EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
|
||||||
|
@ -1262,7 +1262,7 @@ def Test_substitute_expr()
|
|||||||
# List results in multiple lines
|
# List results in multiple lines
|
||||||
new
|
new
|
||||||
setline(1, 'some text here')
|
setline(1, 'some text here')
|
||||||
s/text/\=['aaa', 'bbb', 'ccc']/
|
s/text/\=['aaa', 'bbb', 'ccc']/
|
||||||
assert_equal(['some aaa', 'bbb', 'ccc', ' here'], getline(1, '$'))
|
assert_equal(['some aaa', 'bbb', 'ccc', ' here'], getline(1, '$'))
|
||||||
bwipe!
|
bwipe!
|
||||||
enddef
|
enddef
|
||||||
@ -1338,5 +1338,18 @@ def Test_echo_void()
|
|||||||
CheckScriptFailure(lines, 'E1186:', 1)
|
CheckScriptFailure(lines, 'E1186:', 1)
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
def Test_cmdwin_block()
|
||||||
|
augroup justTesting
|
||||||
|
autocmd BufEnter * {
|
||||||
|
echomsg 'in block'
|
||||||
|
}
|
||||||
|
augroup END
|
||||||
|
feedkeys('q:', 'xt')
|
||||||
|
redraw
|
||||||
|
feedkeys("aclose\<CR>", 'xt')
|
||||||
|
|
||||||
|
au! justTesting
|
||||||
|
enddef
|
||||||
|
|
||||||
|
|
||||||
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
|
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
|
||||||
|
@ -755,6 +755,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3279,
|
||||||
/**/
|
/**/
|
||||||
3278,
|
3278,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user