mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.4.558
Problem: When the X server restarts Vim may get stuck. Solution: Destroy the application context and create it again. (Issue 203)
This commit is contained in:
@@ -1617,6 +1617,17 @@ may_restore_clipboard()
|
|||||||
if (xterm_dpy_was_reset)
|
if (xterm_dpy_was_reset)
|
||||||
{
|
{
|
||||||
xterm_dpy_was_reset = FALSE;
|
xterm_dpy_was_reset = FALSE;
|
||||||
|
|
||||||
|
# ifndef LESSTIF_VERSION
|
||||||
|
/* This has been reported to avoid Vim getting stuck. */
|
||||||
|
if (app_context != (XtAppContext)NULL)
|
||||||
|
{
|
||||||
|
XtDestroyApplicationContext(app_context);
|
||||||
|
app_context = (XtAppContext)NULL;
|
||||||
|
x11_display = NULL; /* freed by XtDestroyApplicationContext() */
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
setup_term_clip();
|
setup_term_clip();
|
||||||
get_x11_title(FALSE);
|
get_x11_title(FALSE);
|
||||||
}
|
}
|
||||||
|
@@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
558,
|
||||||
/**/
|
/**/
|
||||||
557,
|
557,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user