home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.558 < prev    next >
Encoding:
Internet Message Format  |  2014-12-17  |  1.7 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.558
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.558
  11. Problem:    When the X server restarts Vim may get stuck.
  12. Solution:   Destroy the application context and create it again.  (Issue 203)
  13. Files:        src/os_unix.c
  14.  
  15.  
  16. *** ../vim-7.4.557/src/os_unix.c    2014-12-17 14:36:10.367090935 +0100
  17. --- src/os_unix.c    2014-12-17 17:55:23.187644328 +0100
  18. ***************
  19. *** 1617,1622 ****
  20. --- 1617,1633 ----
  21.       if (xterm_dpy_was_reset)
  22.       {
  23.       xterm_dpy_was_reset = FALSE;
  24. + # ifndef LESSTIF_VERSION
  25. +     /* This has been reported to avoid Vim getting stuck. */
  26. +     if (app_context != (XtAppContext)NULL)
  27. +     {
  28. +         XtDestroyApplicationContext(app_context);
  29. +         app_context = (XtAppContext)NULL;
  30. +         x11_display = NULL; /* freed by XtDestroyApplicationContext() */
  31. +     }
  32. + # endif
  33.       setup_term_clip();
  34.       get_x11_title(FALSE);
  35.       }
  36. *** ../vim-7.4.557/src/version.c    2014-12-17 14:47:52.870412129 +0100
  37. --- src/version.c    2014-12-17 17:57:10.026323560 +0100
  38. ***************
  39. *** 743,744 ****
  40. --- 743,746 ----
  41.   {   /* Add new patch number below this line */
  42. + /**/
  43. +     558,
  44.   /**/
  45.  
  46. -- 
  47. hundred-and-one symptoms of being an internet addict:
  48. 14. You start introducing yourself as "Jim at I-I-Net dot net dot au"
  49.  
  50.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  51. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  52. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  53.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  54.