mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.0.0395: testing the + register fails with Motif
Problem: Testing the + register fails with Motif. Solution: Also ignore the "failed to create input context" error in the second gvim. Don't use msg() when it would result in a dialog.
This commit is contained in:
@@ -605,7 +605,8 @@ emsg(char_u *s)
|
|||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
/* When testing some errors are turned into a normal message. */
|
/* When testing some errors are turned into a normal message. */
|
||||||
if (ignore_error(s))
|
if (ignore_error(s))
|
||||||
return msg(s);
|
/* don't call msg() if it results in a dialog */
|
||||||
|
return msg_use_printf() ? FALSE : msg(s);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
called_emsg = TRUE;
|
called_emsg = TRUE;
|
||||||
|
@@ -27,3 +27,6 @@ endfunc
|
|||||||
func GUITearDownCommon()
|
func GUITearDownCommon()
|
||||||
call delete('Xhome', 'rf')
|
call delete('Xhome', 'rf')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" Ignore the "failed to create input context" error.
|
||||||
|
call test_ignore_error('E285')
|
||||||
|
@@ -17,9 +17,6 @@ endfunc
|
|||||||
" Test for resetting "secure" flag after GUI has started.
|
" Test for resetting "secure" flag after GUI has started.
|
||||||
" Must be run first.
|
" Must be run first.
|
||||||
func Test_1_set_secure()
|
func Test_1_set_secure()
|
||||||
" Ignore the "failed to create input context" error.
|
|
||||||
call test_ignore_error('E285')
|
|
||||||
|
|
||||||
set exrc secure
|
set exrc secure
|
||||||
gui -f
|
gui -f
|
||||||
call assert_equal(1, has('gui_running'))
|
call assert_equal(1, has('gui_running'))
|
||||||
@@ -87,13 +84,16 @@ func Test_quoteplus()
|
|||||||
let test_response = 'Yes, I can.'
|
let test_response = 'Yes, I can.'
|
||||||
let vim_exe = exepath(v:progpath)
|
let vim_exe = exepath(v:progpath)
|
||||||
let testee = 'VIMRUNTIME=' . $VIMRUNTIME . '; export VIMRUNTIME;'
|
let testee = 'VIMRUNTIME=' . $VIMRUNTIME . '; export VIMRUNTIME;'
|
||||||
\ . vim_exe . ' -f -g -u NONE -U NONE --noplugin -c ''%s'''
|
\ . vim_exe
|
||||||
let cmd = 'call feedkeys("'
|
\ . ' -f -g -u NONE -U NONE --noplugin --cmd ''%s'' -c ''%s'''
|
||||||
|
" Ignore the "failed to create input context" error.
|
||||||
|
let cmd1 = 'call test_ignore_error("E285")'
|
||||||
|
let cmd2 = 'call feedkeys("'
|
||||||
\ . '\"+p'
|
\ . '\"+p'
|
||||||
\ . ':s/' . test_call . '/' . test_response . '/\<CR>'
|
\ . ':s/' . test_call . '/' . test_response . '/\<CR>'
|
||||||
\ . '\"+yis'
|
\ . '\"+yis'
|
||||||
\ . ':q!\<CR>", "tx")'
|
\ . ':q!\<CR>", "tx")'
|
||||||
let run_vimtest = printf(testee, cmd)
|
let run_vimtest = printf(testee, cmd1, cmd2)
|
||||||
|
|
||||||
" Set the quoteplus register to test_call, and another gvim will launched.
|
" Set the quoteplus register to test_call, and another gvim will launched.
|
||||||
" Then, it first tries to paste the content of its own quotedplus register
|
" Then, it first tries to paste the content of its own quotedplus register
|
||||||
|
@@ -764,6 +764,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 */
|
||||||
|
/**/
|
||||||
|
395,
|
||||||
/**/
|
/**/
|
||||||
394,
|
394,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user