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.1.231 < prev    next >
Encoding:
Internet Message Format  |  2002-10-16  |  2.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.231
  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.1.231
  11. Problem:    Double clicking with the mouse to select a word does not work for
  12.         multi-byte characters.
  13. Solution:   Use vim_iswordc() instead of vim_isIDc().  This means 'iskeyword'
  14.         is used intead of 'isident'.  Also fix that mixing ASCII with
  15.         multi-byte word characters doesn't work, the mouse class for
  16.         punctuation and word characters was mixed up.
  17. Files:        src/normal.c
  18.  
  19.  
  20. *** ../vim61.230/src/normal.c    Thu Oct 17 20:09:35 2002
  21. --- src/normal.c    Thu Oct 17 20:08:43 2002
  22. ***************
  23. *** 2706,2712 ****
  24.               oap->motion_type = MCHAR;
  25.           if (oap != NULL
  26.               && VIsual_mode == 'v'
  27. !             && !vim_isIDc(gchar_pos(&end_visual))
  28.               && equal(curwin->w_cursor, VIsual)
  29.               && (pos = findmatch(oap, NUL)) != NULL)
  30.           {
  31. --- 2706,2712 ----
  32.               oap->motion_type = MCHAR;
  33.           if (oap != NULL
  34.               && VIsual_mode == 'v'
  35. !             && !vim_iswordc(gchar_pos(&end_visual))
  36.               && equal(curwin->w_cursor, VIsual)
  37.               && (pos = findmatch(oap, NUL)) != NULL)
  38.           {
  39. ***************
  40. *** 2848,2855 ****
  41.       if (c == ' ' || c == '\t')
  42.       return 0;
  43.   
  44. !     if (vim_isIDc(c))
  45. !     return 1;
  46.   
  47.       /*
  48.        * There are a few special cases where we want certain combinations of
  49. --- 2848,2855 ----
  50.       if (c == ' ' || c == '\t')
  51.       return 0;
  52.   
  53. !     if (vim_iswordc(c))
  54. !     return 2;
  55.   
  56.       /*
  57.        * There are a few special cases where we want certain combinations of
  58. ***************
  59. *** 2858,2864 ****
  60.        * character is in it's own class.
  61.        */
  62.       if (c != NUL && vim_strchr((char_u *)"-+*/%<>&|^!=", c) != NULL)
  63. !     return 2;
  64.       return c;
  65.   }
  66.   #endif /* FEAT_VISUAL */
  67. --- 2858,2864 ----
  68.        * character is in it's own class.
  69.        */
  70.       if (c != NUL && vim_strchr((char_u *)"-+*/%<>&|^!=", c) != NULL)
  71. !     return 1;
  72.       return c;
  73.   }
  74.   #endif /* FEAT_VISUAL */
  75. *** ../vim61.230/src/version.c    Thu Oct 17 20:10:10 2002
  76. --- src/version.c    Thu Oct 17 19:26:33 2002
  77. ***************
  78. *** 608,609 ****
  79. --- 608,611 ----
  80.   {   /* Add new patch number below this line */
  81. + /**/
  82. +     231,
  83.   /**/
  84.  
  85. -- 
  86. hundred-and-one symptoms of being an internet addict:
  87. 252. You vote for foreign officials.
  88.  
  89.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  90. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  91. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  92.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  93.