Patch 8.2.3279
Problem: Vim9: cannot use block in cmdline window.
Solution: Add EX_CMDWIN to the CMD_block flags. (closes #8689)
Files: src/ex_cmds.h, src/testdir/test_vim9_cmd.vim
*** ../vim-8.2.3278/src/ex_cmds.h 2021-07-25 20:27:03.223912393 +0200
--- src/ex_cmds.h 2021-08-02 22:21:39.571382688 +0200
***************
*** 1853,1859 ****
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK|EX_NONWHITE_OK,
ADDR_LINES),
EXCMD(CMD_block, "{", ex_block, // not found normally
! EX_TRLBAR|EX_LOCK_OK,
ADDR_NONE),
EXCMD(CMD_endblock, "}", ex_endblock,
EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
--- 1853,1859 ----
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK|EX_NONWHITE_OK,
ADDR_LINES),
EXCMD(CMD_block, "{", ex_block, // not found normally
! EX_TRLBAR|EX_LOCK_OK|EX_CMDWIN,
ADDR_NONE),
EXCMD(CMD_endblock, "}", ex_endblock,
EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
*** ../vim-8.2.3278/src/testdir/test_vim9_cmd.vim 2021-07-26
21:10:07.977693943 +0200
--- src/testdir/test_vim9_cmd.vim 2021-08-02 22:21:22.695416080 +0200
***************
*** 1262,1268 ****
# List results in multiple lines
new
setline(1, 'some text here')
! s/text/\=['aaa', 'bbb', 'ccc']/
assert_equal(['some aaa', 'bbb', 'ccc', ' here'], getline(1, '$'))
bwipe!
enddef
--- 1262,1268 ----
# List results in multiple lines
new
setline(1, 'some text here')
! s/text/\=['aaa', 'bbb', 'ccc']/
assert_equal(['some aaa', 'bbb', 'ccc', ' here'], getline(1, '$'))
bwipe!
enddef
***************
*** 1338,1342 ****
--- 1338,1355 ----
CheckScriptFailure(lines, 'E1186:', 1)
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-8.2.3278/src/version.c 2021-08-02 21:55:08.430701260 +0200
--- src/version.c 2021-08-02 22:19:47.627595575 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3279,
/**/
--
LAUNCELOT: At last! A call! A cry of distress ...
(he draws his sword, and turns to CONCORDE)
Concorde! Brave, Concorde ... you shall not have died in vain!
CONCORDE: I'm not quite dead, sir ...
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202108022040.172KeTCf609407%40masaka.moolenaar.net.