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.061 < prev    next >
Encoding:
Internet Message Format  |  2002-05-10  |  2.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.061
  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.061
  11. Problem:    When 'virtualedit' is set and 'selection' is "exclusive", a Visual
  12.         selection that ends just after a tab doesn't include that tab in
  13.         the highlighting.  (Helmut Stiegler)
  14. Solution:   Use a different way to exclude the character under the cursor.
  15. Files:        src/screen.c
  16.  
  17.  
  18. *** ../vim61.060/src/screen.c    Sun Apr 28 22:17:31 2002
  19. --- src/screen.c    Wed May  8 20:16:00 2002
  20. ***************
  21. *** 2502,2508 ****
  22.           }
  23.           if (VIsual_mode != 'V' && lnum == bot->lnum)
  24.           {
  25. !         if (*p_sel == 'e' && bot->col == 0)
  26.           {
  27.               fromcol = -10;
  28.               tocol = MAXCOL;
  29. --- 2502,2512 ----
  30.           }
  31.           if (VIsual_mode != 'V' && lnum == bot->lnum)
  32.           {
  33. !         if (*p_sel == 'e' && bot->col == 0
  34. ! #ifdef FEAT_VIRTUALEDIT
  35. !             && bot->coladd == 0
  36. ! #endif
  37. !            )
  38.           {
  39.               fromcol = -10;
  40.               tocol = MAXCOL;
  41. ***************
  42. *** 2511,2528 ****
  43.           {
  44.               pos = *bot;
  45.               if (*p_sel == 'e')
  46.               {
  47. !             --pos.col;
  48. ! #ifdef FEAT_MBYTE
  49. !             if (has_mbyte)
  50. !             {
  51. !                 line = ml_get_buf(wp->w_buffer, lnum, FALSE);
  52. !                 pos.col -= (*mb_head_off)(line, line + pos.col);
  53. !             }
  54. ! #endif
  55.               }
  56. -             getvvcol(wp, &pos, NULL, NULL, (colnr_T *)&tocol);
  57. -             ++tocol;
  58.           }
  59.           }
  60.       }
  61. --- 2515,2526 ----
  62.           {
  63.               pos = *bot;
  64.               if (*p_sel == 'e')
  65. +             getvvcol(wp, &pos, (colnr_T *)&tocol, NULL, NULL);
  66. +             else
  67.               {
  68. !             getvvcol(wp, &pos, NULL, NULL, (colnr_T *)&tocol);
  69. !             ++tocol;
  70.               }
  71.           }
  72.           }
  73.       }
  74. *** ../vim61.060/src/version.c    Sat May 11 20:50:39 2002
  75. --- src/version.c    Sat May 11 20:55:26 2002
  76. ***************
  77. *** 608,609 ****
  78. --- 608,611 ----
  79.   {   /* Add new patch number below this line */
  80. + /**/
  81. +     61,
  82.   /**/
  83.  
  84. -- 
  85. The only way the average employee can speak to an executive is by taking a
  86. second job as a golf caddie.
  87.                 (Scott Adams - The Dilbert principle)
  88.  
  89.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  90. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  91. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  92.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  93.