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.0.078 < prev    next >
Encoding:
Internet Message Format  |  2001-11-04  |  2.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.078
  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.0.078
  11. Problem:    Using "daw" at the end of a line on a single-character word didn't
  12.             include the white space before it.  At the end of the file it
  13.             didn't work at all.  (Gavin Sinclair)
  14. Solution:   Include the white space before the word.
  15. Files:      src/search.c
  16.  
  17.  
  18. *** ../vim60.77/src/search.c    Thu Nov  1 21:26:45 2001
  19. --- src/search.c    Mon Nov  5 12:48:43 2001
  20. ***************
  21. *** 2703,2718 ****
  22.            * If the start is not on white space, and white space should be
  23.            * included ("word     "), or start is on white space and white
  24.            * space should not be included ("     "), find start of word.
  25.            */
  26. !         if (fwd_word(1L, bigword, TRUE) == FAIL)
  27. !         return FAIL;
  28. !         /*
  29. !          * If end is just past a new-line, we don't want to include the
  30. !          * first character on the line
  31. !          */
  32. !         if (oneleft() == FAIL)    /* put cursor on last char of area */
  33. !         inclusive = FALSE;
  34. !         else if (include)
  35.           {
  36.           /*
  37.            * If we don't include white space at the end, move the start
  38. --- 2703,2718 ----
  39.            * If the start is not on white space, and white space should be
  40.            * included ("word     "), or start is on white space and white
  41.            * space should not be included ("     "), find start of word.
  42. +          * If we end up in the first column of the next line (single char
  43. +          * word) back up to end of the line.
  44.            */
  45. !         fwd_word(1L, bigword, TRUE);
  46. !         if (curwin->w_cursor.col == 0)
  47. !         decl(&curwin->w_cursor);
  48. !         else
  49. !         oneleft();
  50. !         if (include)
  51.           {
  52.           /*
  53.            * If we don't include white space at the end, move the start
  54. *** ../vim60.77/src/version.c    Mon Nov  5 12:51:06 2001
  55. --- src/version.c    Mon Nov  5 13:11:50 2001
  56. ***************
  57. *** 608,609 ****
  58. --- 608,611 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     78,
  62.   /**/
  63.  
  64. -- 
  65. The process for understanding customers primarily involves sitting around with
  66. other marketing people and talking about what you would to if you were dumb
  67. enough to be a customer.
  68.                 (Scott Adams - The Dilbert principle)
  69.  
  70.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  71. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  72.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  73.