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.3 / 7.3.865 < prev    next >
Encoding:
Internet Message Format  |  2013-03-15  |  2.0 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.865
  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.3.865 (after 7.3.862)
  11. Problem:    Mouse position may be wrong.
  12. Solution:   Let vungetc() restore the mouse position.
  13. Files:      src/getchar.c
  14.  
  15.  
  16. *** ../vim-7.3.864/src/getchar.c    2012-06-06 12:06:10.000000000 +0200
  17. --- src/getchar.c    2013-03-16 21:41:02.000000000 +0100
  18. ***************
  19. *** 1337,1342 ****
  20. --- 1337,1346 ----
  21.   
  22.   static int old_char = -1;    /* character put back by vungetc() */
  23.   static int old_mod_mask;    /* mod_mask for ungotten character */
  24. + #ifdef FEAT_MOUSE
  25. + static int old_mouse_row;    /* mouse_row related to old_char */
  26. + static int old_mouse_col;    /* mouse_col related to old_char */
  27. + #endif
  28.   
  29.   #if defined(FEAT_EVAL) || defined(FEAT_EX_EXTRA) || defined(PROTO)
  30.   
  31. ***************
  32. *** 1567,1572 ****
  33. --- 1571,1580 ----
  34.       c = old_char;
  35.       old_char = -1;
  36.       mod_mask = old_mod_mask;
  37. + #ifdef FEAT_MOUSE
  38. +     mouse_row = old_mouse_row;
  39. +     mouse_col = old_mouse_col;
  40. + #endif
  41.       }
  42.       else
  43.       {
  44. ***************
  45. *** 1877,1882 ****
  46. --- 1885,1894 ----
  47.   {
  48.       old_char = c;
  49.       old_mod_mask = mod_mask;
  50. + #ifdef FEAT_MOUSE
  51. +     old_mouse_row = mouse_row;
  52. +     old_mouse_col = mouse_col;
  53. + #endif
  54.   }
  55.   
  56.   /*
  57. *** ../vim-7.3.864/src/version.c    2013-03-16 21:35:28.000000000 +0100
  58. --- src/version.c    2013-03-16 21:38:44.000000000 +0100
  59. ***************
  60. *** 730,731 ****
  61. --- 730,733 ----
  62.   {   /* Add new patch number below this line */
  63. + /**/
  64. +     865,
  65.   /**/
  66.  
  67. -- 
  68. Creating the world with Emacs:   M-x let-there-be-light
  69. Creating the world with Vim:     :make world
  70.  
  71.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  72. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  73. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  74.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  75.