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 / 6.2.008 < prev    next >
Encoding:
Internet Message Format  |  2003-06-02  |  1.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.008
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.2.008
  11. Problem:    XIM with GTK 2: After backspacing preedit characters are wrong.
  12. Solution:   Reset the cursor position. (Yasuhiro Matsumoto)
  13. Files:        src/mbyte.c
  14.  
  15.  
  16. *** ../vim-6.2.007/src/mbyte.c    Sat May 31 18:12:56 2003
  17. --- src/mbyte.c    Tue Jun  3 20:49:02 2003
  18. ***************
  19. *** 3199,3204 ****
  20. --- 3199,3209 ----
  21.   
  22.       g_return_if_fail(preedit_string != NULL); /* just in case */
  23.   
  24. +     /* If at the start position (after typing backspace) preedit_start_col
  25. +      * must be reset. */
  26. +     if (cursor_index == 0)
  27. +     preedit_start_col = MAXCOL;
  28.       if (preedit_start_col == MAXCOL && preedit_string[0] != '\0')
  29.       {
  30.       /* Urgh, this breaks if the input buffer isn't empty now */
  31. *** ../vim-6.2.007/src/version.c    Tue Jun  3 20:40:22 2003
  32. --- src/version.c    Tue Jun  3 20:49:57 2003
  33. ***************
  34. *** 632,633 ****
  35. --- 632,635 ----
  36.   {   /* Add new patch number below this line */
  37. + /**/
  38. +     8,
  39.   /**/
  40.  
  41. -- 
  42. Ed's Radiator Shop: The Best Place in Town to Take a Leak.
  43.  
  44.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  45. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  46. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  47.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  48.