mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.5094: MS-Windows GUI: empty command may cause a dialog
Problem: MS-Windows GUI: empty command may cause a dialog. Solution: Delete the dialog file. Improve the message.
This commit is contained in:
parent
6ce1b59228
commit
217ea51ee4
@ -246,8 +246,7 @@ func RunTheTest(test)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if filereadable('guidialogfile')
|
if filereadable('guidialogfile')
|
||||||
call add(v:errors, "Unexpected dialog:")
|
call add(v:errors, "Unexpected dialog: " .. readfile('guidialogfile')->join('<NL>'))
|
||||||
call add(v:errors, readfile('guidialogfile').join('\n'))
|
|
||||||
call delete('guidialogfile')
|
call delete('guidialogfile')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -261,6 +261,9 @@ func Test_empty_command_visual_mode()
|
|||||||
call assert_equal(1, RunVim([], [], '-u NONE -e -s -S Xexmodescript'))
|
call assert_equal(1, RunVim([], [], '-u NONE -e -s -S Xexmodescript'))
|
||||||
|
|
||||||
call delete('Xexmodescript')
|
call delete('Xexmodescript')
|
||||||
|
|
||||||
|
" This may cause a dialog to be displayed for an empty command, ignore it.
|
||||||
|
call delete('guidialogfile')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|
||||||
|
@ -734,6 +734,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 */
|
||||||
|
/**/
|
||||||
|
5094,
|
||||||
/**/
|
/**/
|
||||||
5093,
|
5093,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user