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.069 < prev    next >
Encoding:
Internet Message Format  |  2002-05-15  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.069
  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.069
  11. Problem:    When 'showmatch' is set and "$" is in 'cpoptions', using
  12.         "C}<Esc>" may forget to remove the "$". (Preben Guldberg)
  13. Solution:   Restore dollar_vcol after displaying the matching cursor position.
  14. Files:        src/search.c
  15.  
  16.  
  17. *** ../vim61.068/src/search.c    Sun Apr 28 22:11:57 2002
  18. --- src/search.c    Mon May 13 19:47:58 2002
  19. ***************
  20. *** 2025,2030 ****
  21. --- 2025,2031 ----
  22.   #ifdef CURSOR_SHAPE
  23.       int            save_state;
  24.   #endif
  25. +     colnr_T        save_dollar_vcol;
  26.   
  27.       if ((lpos = findmatch(NULL, NUL)) == NULL)        /* no match, so beep */
  28.       vim_beep();
  29. ***************
  30. *** 2045,2050 ****
  31. --- 2046,2052 ----
  32.           ++curwin->w_virtcol;    /* do display ')' just before "$" */
  33.           update_screen(VALID);    /* show the new char first */
  34.   
  35. +         save_dollar_vcol = dollar_vcol;
  36.   #ifdef CURSOR_SHAPE
  37.           save_state = State;
  38.           State = SHOWMATCH;
  39. ***************
  40. *** 2063,2068 ****
  41. --- 2065,2074 ----
  42.           gui_mch_flush();
  43.           }
  44.   #endif
  45. +         /* Restore collar_vcol(), because setcursor() may call curs_rows()
  46. +          * which resets it if the matching position is in a previous line
  47. +          * and has a higher column number. */
  48. +         dollar_vcol = save_dollar_vcol;
  49.   
  50.           /*
  51.            * brief pause, unless 'm' is present in 'cpo' and a character is
  52. *** ../vim61.068/src/version.c    Thu May 16 21:32:05 2002
  53. --- src/version.c    Thu May 16 21:33:43 2002
  54. ***************
  55. *** 608,609 ****
  56. --- 608,611 ----
  57.   {   /* Add new patch number below this line */
  58. + /**/
  59. +     69,
  60.   /**/
  61.  
  62. -- 
  63. How To Keep A Healthy Level Of Insanity:
  64. 1. At lunch time, sit in your parked car with sunglasses on and point
  65.    a hair dryer at passing cars. See if they slow down.
  66.  
  67.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  68. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  69. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  70.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  71.