mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.0.1653: screen dump is made too soon
Problem: Screen dump is made too soon. Solution: Wait until the ruler is displayed. (Ozaki Kiichi, closes #2755)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
|o+0&#ffffff0|n|e| |t|w|o| |t|h|r|e@1| |f|o|u|r| |f|i|v|e| @51
|
|o+0&#ffffff0|n|e| |t|w|o| |t|h|r|e@1| |f|o|u|r| |f|i|v|e| @51
|
||||||
|a|n|d| |o|n|e| |t|w|o| |X|t|h|r|e@1| |f|o|u|r| |f|i|v|e| @46
|
|a|n|d| |o|n|e| |t|w|o| >X|t|h|r|e@1| |f|o|u|r| |f|i|v|e| @46
|
||||||
|o|n|e| |m|o|r|e| |t|w| +0#0000001#ffd7ff255|U|n|d|o| @12| +0#0000000#ffffff0@45
|
|o|n|e| |m|o|r|e| |t|w| +0#0000001#ffd7ff255|U|n|d|o| @12| +0#0000000#ffffff0@45
|
||||||
|~+0#4040ff13&| @9| +0#0000001#ffd7ff255@17| +0#4040ff13#ffffff0@45
|
|~+0#4040ff13&| @9| +0#0000001#ffd7ff255@17| +0#4040ff13#ffffff0@45
|
||||||
|~| @9| +0#0000001#ffd7ff255|P|a|s|t|e| @11| +0#4040ff13#ffffff0@45
|
|~| @9| +0#0000001#ffd7ff255|P|a|s|t|e| @11| +0#4040ff13#ffffff0@45
|
||||||
@@ -17,4 +17,4 @@
|
|||||||
|~| @73
|
|~| @73
|
||||||
|~| @73
|
|~| @73
|
||||||
|~| @73
|
|~| @73
|
||||||
|:+0#0000000&|p|o|p|u|p| |P|o|p|U|p| @34|:| @8> @17
|
|:+0#0000000&|p|o|p|u|p| |P|o|p|U|p| @62
|
||||||
|
@@ -17,4 +17,4 @@
|
|||||||
|~| @73
|
|~| @73
|
||||||
|~| @73
|
|~| @73
|
||||||
|~| @73
|
|~| @73
|
||||||
|:+0#0000000&|p|o|p|u|p| |P|o|p|U|p| @34|:| @8| @17
|
|:+0#0000000&|p|o|p|u|p| |P|o|p|U|p| @62
|
||||||
|
@@ -59,6 +59,9 @@ func RunVimInTerminal(arguments, options)
|
|||||||
let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols})
|
let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols})
|
||||||
call assert_equal([rows, cols], term_getsize(buf))
|
call assert_equal([rows, cols], term_getsize(buf))
|
||||||
|
|
||||||
|
" Wait for the ruler (in the status line) to be shown.
|
||||||
|
call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1})
|
||||||
|
|
||||||
return buf
|
return buf
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
@@ -1315,6 +1315,8 @@ func Test_Changed_FirstTime()
|
|||||||
call writefile([''], 'Xchanged.txt')
|
call writefile([''], 'Xchanged.txt')
|
||||||
let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], {'term_rows': 3})
|
let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], {'term_rows': 3})
|
||||||
call assert_equal('running', term_getstatus(buf))
|
call assert_equal('running', term_getstatus(buf))
|
||||||
|
" Wait for the ruler (in the status line) to be shown.
|
||||||
|
call WaitFor({-> term_getline(buf, 3) =~# '\<All$'})
|
||||||
" It's only adding autocmd, so that no event occurs.
|
" It's only adding autocmd, so that no event occurs.
|
||||||
call term_sendkeys(buf, ":au! TextChanged <buffer> call writefile(['No'], 'Xchanged.txt')\<cr>")
|
call term_sendkeys(buf, ":au! TextChanged <buffer> call writefile(['No'], 'Xchanged.txt')\<cr>")
|
||||||
call term_sendkeys(buf, "\<C-\\>\<C-N>:qa!\<cr>")
|
call term_sendkeys(buf, "\<C-\\>\<C-N>:qa!\<cr>")
|
||||||
|
@@ -975,7 +975,7 @@ endfunction
|
|||||||
func Check_dump01(off)
|
func Check_dump01(off)
|
||||||
call assert_equal('one two three four five', trim(getline(a:off + 1)))
|
call assert_equal('one two three four five', trim(getline(a:off + 1)))
|
||||||
call assert_equal('~ Select Word', trim(getline(a:off + 7)))
|
call assert_equal('~ Select Word', trim(getline(a:off + 7)))
|
||||||
call assert_equal(':popup PopUp :', trim(getline(a:off + 20)))
|
call assert_equal(':popup PopUp', trim(getline(a:off + 20)))
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_terminal_dumpwrite_composing()
|
func Test_terminal_dumpwrite_composing()
|
||||||
|
@@ -762,6 +762,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1653,
|
||||||
/**/
|
/**/
|
||||||
1652,
|
1652,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user