mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.0118: no test for what patch 9.0.0155 fixes
Problem: No test for what patch 9.0.0155 fixes.
Solution: Add a test. Fix typos. (closes vim/vim#10822)
750209459c
This commit is contained in:
parent
63244f68e7
commit
2c522854c7
@ -1084,7 +1084,7 @@ EXTERN char windowsVersion[20] INIT(= { 0 });
|
|||||||
|
|
||||||
EXTERN int exit_need_delay INIT(= 0);
|
EXTERN int exit_need_delay INIT(= 0);
|
||||||
|
|
||||||
// Set when 'cmdheight' is changed from non-zero to one temporarily.
|
// Set when 'cmdheight' is changed from zero to one temporarily.
|
||||||
EXTERN int made_cmdheight_nonzero INIT(= false);
|
EXTERN bool made_cmdheight_nonzero INIT(= false);
|
||||||
|
|
||||||
#endif // NVIM_GLOBALS_H
|
#endif // NVIM_GLOBALS_H
|
||||||
|
@ -909,7 +909,7 @@ int do_record(int c)
|
|||||||
retval = OK;
|
retval = OK;
|
||||||
|
|
||||||
if (!ui_has_messages()) {
|
if (!ui_has_messages()) {
|
||||||
// Enable macro indicator temporary
|
// Enable macro indicator temporarily
|
||||||
set_option_value("ch", 1L, NULL, 0);
|
set_option_value("ch", 1L, NULL, 0);
|
||||||
update_screen(VALID);
|
update_screen(VALID);
|
||||||
|
|
||||||
|
@ -346,7 +346,7 @@ func Test_CompleteDone_modify()
|
|||||||
\ 'user_data': '',
|
\ 'user_data': '',
|
||||||
\ }
|
\ }
|
||||||
let v:completed_item = value
|
let v:completed_item = value
|
||||||
call assert_equal(v:completed_item, value)
|
call assert_equal(value, v:completed_item)
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func CompleteTest(findstart, query)
|
func CompleteTest(findstart, query)
|
||||||
|
@ -338,14 +338,14 @@ func Test_cmdheight_zero()
|
|||||||
|
|
||||||
" Check change/restore cmdheight when macro
|
" Check change/restore cmdheight when macro
|
||||||
call feedkeys("qa", "xt")
|
call feedkeys("qa", "xt")
|
||||||
call assert_equal(&cmdheight, 1)
|
call assert_equal(1, &cmdheight)
|
||||||
call feedkeys("q", "xt")
|
call feedkeys("q", "xt")
|
||||||
call assert_equal(&cmdheight, 0)
|
call assert_equal(0, &cmdheight)
|
||||||
|
|
||||||
call setline(1, 'somestring')
|
call setline(1, 'somestring')
|
||||||
call feedkeys("y", "n")
|
call feedkeys("y", "n")
|
||||||
%s/somestring/otherstring/gc
|
%s/somestring/otherstring/gc
|
||||||
call assert_equal(getline(1), 'otherstring')
|
call assert_equal('otherstring', getline(1))
|
||||||
|
|
||||||
call feedkeys("g\<C-g>", "xt")
|
call feedkeys("g\<C-g>", "xt")
|
||||||
call assert_match(
|
call assert_match(
|
||||||
@ -357,7 +357,16 @@ func Test_cmdheight_zero()
|
|||||||
split
|
split
|
||||||
endfor
|
endfor
|
||||||
only
|
only
|
||||||
call assert_equal(&cmdheight, 0)
|
call assert_equal(0, &cmdheight)
|
||||||
|
|
||||||
|
" Check that pressing ":" should not scroll a window
|
||||||
|
" Check for what patch 9.0.0115 fixes
|
||||||
|
botright 10new
|
||||||
|
call setline(1, range(12))
|
||||||
|
7
|
||||||
|
call feedkeys(":\"\<C-R>=line('w0')\<CR>\<CR>", "xt")
|
||||||
|
call assert_equal('"1', @:)
|
||||||
|
bwipe!
|
||||||
|
|
||||||
set cmdheight&
|
set cmdheight&
|
||||||
set showcmd&
|
set showcmd&
|
||||||
|
Loading…
Reference in New Issue
Block a user