mirror of
https://github.com/vim/vim.git
synced 2025-10-18 07:54:29 -04:00
patch 8.0.0543: test_edit causes older xfce4-terminal to close
Problem: Test_edit causes older xfce4-terminal to close. (Dominique Pelle) Solution: Reduce number of columns to 2000. Try to restore the window position.
This commit is contained in:
@@ -1328,10 +1328,14 @@ func Test_edit_complete_very_long_name()
|
||||
" Long directory names only work on Unix.
|
||||
return
|
||||
endif
|
||||
" Try to get the Vim window position before setting 'columns'.
|
||||
let winposx = getwinposx()
|
||||
let winposy = getwinposy()
|
||||
let save_columns = &columns
|
||||
set columns=5000
|
||||
call assert_equal(5000, &columns)
|
||||
set columns=2000
|
||||
call assert_equal(2000, &columns)
|
||||
set noswapfile
|
||||
|
||||
let dirname = getcwd() . "/Xdir"
|
||||
let longdirname = dirname . repeat('/' . repeat('d', 255), 4)
|
||||
let longfilename = longdirname . '/' . repeat('a', 255)
|
||||
@@ -1345,5 +1349,8 @@ func Test_edit_complete_very_long_name()
|
||||
exe 'bwipe! ' . longfilename
|
||||
call delete(dirname, 'rf')
|
||||
let &columns = save_columns
|
||||
if winposx >= 0 && winposy >= 0
|
||||
exe 'winpos ' . winposx . ' ' . winposy
|
||||
endif
|
||||
set swapfile&
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user