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.105 < prev    next >
Encoding:
Internet Message Format  |  2001-12-29  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.105
  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.105
  11. Problem:    Multi-byte: In a window of one column wide, with syntax
  12.         highlighting enabled a crash might happen.
  13. Solution:   Skip getting the syntax attribute when the character doesn't fit
  14.         anyway.  (Yasuhiro Matsumoto)
  15. Files:        src/screen.c
  16.  
  17.  
  18. *** ../vim60.104/src/screen.c    Sun Dec 30 21:23:29 2001
  19. --- src/screen.c    Sun Dec 30 21:36:58 2001
  20. ***************
  21. *** 3290,3303 ****
  22.           if (extra_check)
  23.           {
  24.   #ifdef FEAT_SYN_HL
  25. !         if (has_syntax)
  26.           {
  27.               /* Get the syntax attribute for the character.  If there
  28.                * is an error, disable syntax highlighting. */
  29.               save_did_emsg = did_emsg;
  30.               did_emsg = FALSE;
  31.   
  32. -             v = (long)(ptr - line);
  33.               syntax_attr = get_syntax_attr((colnr_T)v - 1);
  34.   
  35.               if (did_emsg)
  36. --- 3290,3304 ----
  37.           if (extra_check)
  38.           {
  39.   #ifdef FEAT_SYN_HL
  40. !         /* Get syntax attribute, unless still at the start of the line
  41. !          * (double-wide char that doesn't fit). */
  42. !         if (has_syntax && (v = (long)(ptr - line)) > 0)
  43.           {
  44.               /* Get the syntax attribute for the character.  If there
  45.                * is an error, disable syntax highlighting. */
  46.               save_did_emsg = did_emsg;
  47.               did_emsg = FALSE;
  48.   
  49.               syntax_attr = get_syntax_attr((colnr_T)v - 1);
  50.   
  51.               if (did_emsg)
  52. *** ../vim60.104/src/version.c    Sun Dec 30 21:23:29 2001
  53. --- src/version.c    Sun Dec 30 21:39:21 2001
  54. ***************
  55. *** 608,609 ****
  56. --- 608,611 ----
  57.   {   /* Add new patch number below this line */
  58. + /**/
  59. +     105,
  60.   /**/
  61.  
  62. -- 
  63.        We're knights of the round table
  64.        We dance whene'er we're able
  65.        We do routines and chorus scenes
  66.        With footwork impeccable.
  67.        We dine well here in Camelot
  68.        We eat ham and jam and spam a lot.
  69.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  70.  
  71.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  72. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  73.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  74.