Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 28749:4a9fdf708575 v8.2.4899
patch 8.2.4899: with latin1 encoding CTRL-W might go before the cmdline
Commit: https://github.com/vim/vim/commit/ef02f16609ff0a26ffc6e20263523424980898fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 7 10:49:10 2022 +0100
patch 8.2.4899: with latin1 encoding CTRL-W might go before the cmdline
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 May 2022 12:00:03 +0200 |
parents | b44f15083faf |
children | add09d468c0d |
comparison
equal
deleted
inserted
replaced
28748:2a275e203f8b | 28749:4a9fdf708575 |
---|---|
771 call feedkeys(":abc def ghi\<S-Left>\<C-W>\<C-B>\"\<CR>", 'tx') | 771 call feedkeys(":abc def ghi\<S-Left>\<C-W>\<C-B>\"\<CR>", 'tx') |
772 call assert_equal('"abc ghi', @:, e) | 772 call assert_equal('"abc ghi', @:, e) |
773 | 773 |
774 call feedkeys(":abc def\<S-Left>\<C-U>\<C-B>\"\<CR>", 'tx') | 774 call feedkeys(":abc def\<S-Left>\<C-U>\<C-B>\"\<CR>", 'tx') |
775 call assert_equal('"def', @:, e) | 775 call assert_equal('"def', @:, e) |
776 | |
777 " This was going before the start in latin1. | |
778 call feedkeys(": \<C-W>\<CR>", 'tx') | |
776 endfor | 779 endfor |
777 | 780 |
778 let &encoding = encoding_save | 781 let &encoding = encoding_save |
779 endfunc | 782 endfunc |
780 | 783 |