mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.0.0516 (#8458)
Problem: A large count on a normal command causes trouble. (Dominique
Pelle)
Solution: Make "opcount" long.
b1e04fca37
This commit is contained in:
parent
4339fdd802
commit
c7350f542a
@ -745,11 +745,9 @@ EXTERN int State INIT(= NORMAL); /* This is the current state of the
|
||||
EXTERN bool finish_op INIT(= false); // true while an operator is pending
|
||||
EXTERN long opcount INIT(= 0); // count for pending operator
|
||||
|
||||
/*
|
||||
* ex mode (Q) state
|
||||
*/
|
||||
EXTERN int exmode_active INIT(= 0); /* zero, EXMODE_NORMAL or EXMODE_VIM */
|
||||
EXTERN int ex_no_reprint INIT(= FALSE); /* no need to print after z or p */
|
||||
// Ex Mode (Q) state
|
||||
EXTERN int exmode_active INIT(= 0); // zero, EXMODE_NORMAL or EXMODE_VIM
|
||||
EXTERN int ex_no_reprint INIT(= false); // no need to print after z or p
|
||||
|
||||
EXTERN int Recording INIT(= FALSE); /* TRUE when recording into a reg. */
|
||||
EXTERN int Exec_reg INIT(= FALSE); /* TRUE when executing a register */
|
||||
|
@ -2314,7 +2314,7 @@ func! Test_normal53_digraph()
|
||||
bw!
|
||||
endfunc
|
||||
|
||||
func! Test_normal54_Ctrl_bsl()
|
||||
func Test_normal54_Ctrl_bsl()
|
||||
new
|
||||
call setline(1, 'abcdefghijklmn')
|
||||
exe "norm! df\<c-\>\<c-n>"
|
||||
@ -2338,6 +2338,14 @@ func! Test_normal54_Ctrl_bsl()
|
||||
bw!
|
||||
endfunc
|
||||
|
||||
func Test_normal_large_count()
|
||||
" This may fail with 32bit long, how do we detect that?
|
||||
new
|
||||
normal o
|
||||
normal 6666666666dL
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
" Test for the gr (virtual replace) command
|
||||
" Test for the bug fixed by 7.4.387
|
||||
func Test_gr_command()
|
||||
|
Loading…
Reference in New Issue
Block a user