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.063 < prev    next >
Encoding:
Internet Message Format  |  2001-10-31  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.063
  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.063
  11. Problem:    When 'cpoptions' includes "$", using "cw" to type a ')' on top of
  12.         the "$" doesn't update syntax highlighting after it.
  13. Solution:   Stop displaying the "$" when typing a ')' in its position.
  14. Files:        src/search.c
  15.  
  16.  
  17. *** ../vim60.62/src/search.c    Wed Oct 31 20:17:35 2001
  18. --- src/search.c    Thu Nov  1 21:20:39 2001
  19. ***************
  20. *** 1987,1994 ****
  21.           mpos = *lpos;    /* save the pos, update_screen() may change it */
  22.           save_cursor = curwin->w_cursor;
  23.           save_so = p_so;
  24. !         ++curwin->w_virtcol;    /* for when 'cpo' contains '$': do
  25. !                        redraw the ')' */
  26.           update_screen(VALID);    /* show the new char first */
  27.   
  28.   #ifdef CURSOR_SHAPE
  29. --- 1987,1997 ----
  30.           mpos = *lpos;    /* save the pos, update_screen() may change it */
  31.           save_cursor = curwin->w_cursor;
  32.           save_so = p_so;
  33. !         /* Handle "$" in 'cpo': If the ')' is typed on top of the "$",
  34. !          * stop displaying the "$". */
  35. !         if (dollar_vcol > 0 && dollar_vcol == curwin->w_virtcol)
  36. !         dollar_vcol = 0;
  37. !         ++curwin->w_virtcol;    /* do display ')' just before "$" */
  38.           update_screen(VALID);    /* show the new char first */
  39.   
  40.   #ifdef CURSOR_SHAPE
  41. *** ../vim60.62/src/version.c    Thu Nov  1 21:25:14 2001
  42. --- src/version.c    Thu Nov  1 21:23:28 2001
  43. ***************
  44. *** 608,609 ****
  45. --- 608,611 ----
  46.   {   /* Add new patch number below this line */
  47. + /**/
  48. +     63,
  49.   /**/
  50.  
  51. -- 
  52. OLD WOMAN: King of the WHO?
  53. ARTHUR:    The Britons.
  54. OLD WOMAN: Who are the Britons?
  55.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  56.  
  57.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  58. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  59.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  60.