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.020 < prev    next >
Encoding:
Internet Message Format  |  2001-10-21  |  2.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.020
  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.020
  11. Problem:    When obtaining the value of a global variable internally, could
  12.         get the function-local value instead.  Applies to using <Leader>
  13.         and <LocalLeader> and resetting highlighting in a function.
  14. Solution:   Prepend "g:" to the variable name. (Aric Blumer)
  15. Files:        src/syntax.c, src/term.c
  16.  
  17.  
  18. *** ../vim60.19/src/syntax.c    Wed Sep 26 16:12:52 2001
  19. --- src/syntax.c    Mon Oct 22 18:36:33 2001
  20. ***************
  21. *** 5871,5877 ****
  22.        * Try finding the color scheme file.  Used when a color file was loaded
  23.        * and 'background' or 't_Co' is changed.
  24.        */
  25. !     p = get_var_value((char_u *)"colors_name");
  26.       if (p != NULL && load_colors(p) == OK)
  27.       return;
  28.   #endif
  29. --- 5871,5877 ----
  30.        * Try finding the color scheme file.  Used when a color file was loaded
  31.        * and 'background' or 't_Co' is changed.
  32.        */
  33. !     p = get_var_value((char_u *)"g:colors_name");
  34.       if (p != NULL && load_colors(p) == OK)
  35.       return;
  36.   #endif
  37. ***************
  38. *** 5903,5909 ****
  39.       /*
  40.        * If syntax highlighting is enabled load the highlighting for it.
  41.        */
  42. !     if (get_var_value((char_u *)"syntax_on") != NULL)
  43.       (void)cmd_runtime((char_u *)"syntax/syncolor.vim", TRUE);
  44.   #endif
  45.   }
  46. --- 5903,5909 ----
  47.       /*
  48.        * If syntax highlighting is enabled load the highlighting for it.
  49.        */
  50. !     if (get_var_value((char_u *)"g:syntax_on") != NULL)
  51.       (void)cmd_runtime((char_u *)"syntax/syncolor.vim", TRUE);
  52.   #endif
  53.   }
  54. *** ../vim60.19/src/term.c    Sun Oct 21 12:38:02 2001
  55. --- src/term.c    Mon Oct 22 18:37:53 2001
  56. ***************
  57. *** 4714,4725 ****
  58.           if (STRNICMP(src, "<Leader>", 8) == 0)
  59.           {
  60.           len = 8;
  61. !         p = get_var_value((char_u *)"mapleader");
  62.           }
  63.           else if (STRNICMP(src, "<LocalLeader>", 13) == 0)
  64.           {
  65.           len = 13;
  66. !         p = get_var_value((char_u *)"maplocalleader");
  67.           }
  68.           else
  69.           {
  70. --- 4714,4725 ----
  71.           if (STRNICMP(src, "<Leader>", 8) == 0)
  72.           {
  73.           len = 8;
  74. !         p = get_var_value((char_u *)"g:mapleader");
  75.           }
  76.           else if (STRNICMP(src, "<LocalLeader>", 13) == 0)
  77.           {
  78.           len = 13;
  79. !         p = get_var_value((char_u *)"g:maplocalleader");
  80.           }
  81.           else
  82.           {
  83. *** ../vim60.19/src/version.c    Mon Oct 22 12:52:35 2001
  84. --- src/version.c    Mon Oct 22 18:38:09 2001
  85. ***************
  86. *** 608,609 ****
  87. --- 608,611 ----
  88.   {   /* Add new patch number below this line */
  89. + /**/
  90. +     20,
  91.   /**/
  92.  
  93. -- 
  94. Rule #1: Don't give somebody a tool that he's going to hurt himself with.
  95.  
  96.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  97. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  98.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  99.