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.067 < prev    next >
Encoding:
Internet Message Format  |  2003-10-13  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.067
  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.067
  11. Problem:    When searching for a string that starts with a composing character
  12.         the command line isn't drawn properly.
  13. Solution:   Don't count the space to draw the composing character on and
  14.         adjust the cursor column after drawing the string.
  15. Files:        src/message.c
  16.  
  17.  
  18. *** ../vim-6.2.066/src/message.c    Thu Jul 24 21:48:47 2003
  19. --- src/message.c    Sun Aug  3 16:16:49 2003
  20. ***************
  21. *** 1166,1175 ****
  22.       /* If the string starts with a composing character first draw a space on
  23.        * which the composing char can be drawn. */
  24.       if (enc_utf8 && utf_iscomposing(utf_ptr2char(msgstr)))
  25. -     {
  26.       msg_puts_attr((char_u *)" ", attr);
  27. -     retval += 1;
  28. -     }
  29.   #endif
  30.   
  31.       /*
  32. --- 1166,1172 ----
  33. ***************
  34. *** 2080,2085 ****
  35. --- 2077,2088 ----
  36.       msg_didout = TRUE;        /* remember that line is not empty */
  37.       screen_puts_len(t_s, (int)(s - t_s), msg_row, msg_col, attr);
  38.       msg_col += t_col;
  39. + #ifdef FEAT_MBYTE
  40. +     /* If the string starts with a composing character don't increment the
  41. +      * column position for it. */
  42. +     if (enc_utf8 && utf_iscomposing(utf_ptr2char(t_s)))
  43. +     --msg_col;
  44. + #endif
  45.       if (msg_col >= Columns)
  46.       {
  47.       msg_col = 0;
  48. *** ../vim-6.2.066/src/version.c    Sun Aug 10 22:37:55 2003
  49. --- src/version.c    Sun Aug 10 22:39:21 2003
  50. ***************
  51. *** 632,633 ****
  52. --- 632,635 ----
  53.   {   /* Add new patch number below this line */
  54. + /**/
  55. +     67,
  56.   /**/
  57.  
  58. -- 
  59. From "know your smileys":
  60.  (X0||)   Double hamburger with lettuce and tomato
  61.  
  62.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  63. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  64. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  65.  \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///
  66.