Patch 8.2.4899
Problem: With latin1 encoding CTRL-W might go before the start of the
command line.
Solution: Check already being at the start of the command line.
Files: src/ex_getln.c, src/testdir/test_cmdline.vim
*** ../vim-8.2.4898/src/ex_getln.c 2022-04-21 23:29:58.948561831 +0100
--- src/ex_getln.c 2022-05-07 10:47:24.137122481 +0100
***************
*** 1082,1091 ****
{
while (p > ccline.cmdbuff && vim_isspace(p[-1]))
--p;
! i = vim_iswordc(p[-1]);
! while (p > ccline.cmdbuff && !vim_isspace(p[-1])
! && vim_iswordc(p[-1]) == i)
! --p;
}
else
--p;
--- 1082,1094 ----
{
while (p > ccline.cmdbuff && vim_isspace(p[-1]))
--p;
! if (p > ccline.cmdbuff)
! {
! i = vim_iswordc(p[-1]);
! while (p > ccline.cmdbuff && !vim_isspace(p[-1])
! && vim_iswordc(p[-1]) == i)
! --p;
! }
}
else
--p;
*** ../vim-8.2.4898/src/testdir/test_cmdline.vim 2022-05-06
20:38:41.668040951 +0100
--- src/testdir/test_cmdline.vim 2022-05-07 10:20:10.608381022 +0100
***************
*** 773,778 ****
--- 773,781 ----
call feedkeys(":abc def\<S-Left>\<C-U>\<C-B>\"\<CR>", 'tx')
call assert_equal('"def', @:, e)
+
+ " This was going before the start in latin1.
+ call feedkeys(": \<C-W>\<CR>", 'tx')
endfor
let &encoding = encoding_save
*** ../vim-8.2.4898/src/version.c 2022-05-07 10:03:24.002384614 +0100
--- src/version.c 2022-05-07 10:18:50.720540243 +0100
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4899,
/**/
--
Would you care for a drink? I mean, if it were, like,
disabled and you had to look after it?
/// 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/20220507095000.291FF1C0463%40moolenaar.net.