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 / 7.3 / 7.3.1282 < prev    next >
Encoding:
Internet Message Format  |  2013-06-30  |  3.2 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1282
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.1282 (after 7.3.1277)
  11. Problem:    'cursorline' not drawn in any other window. (Charles Campbell)
  12. Solution:   Do draw the cursor line in other windows.
  13. Files:        src/screen.c
  14.  
  15.  
  16. *** ../vim-7.3.1281/src/screen.c    2013-06-30 17:23:46.000000000 +0200
  17. --- src/screen.c    2013-07-01 20:12:46.000000000 +0200
  18. ***************
  19. *** 3369,3376 ****
  20.       /* Cursor line highlighting for 'cursorline' in the current window.  Not
  21.        * when Visual mode is active, because it's not clear what is selected
  22.        * then. */
  23. !     if (wp->w_p_cul && wp == curwin && lnum == wp->w_cursor.lnum
  24. !                                 && !VIsual_active)
  25.       {
  26.       line_attr = hl_attr(HLF_CUL);
  27.       area_highlighting = TRUE;
  28. --- 3369,3376 ----
  29.       /* Cursor line highlighting for 'cursorline' in the current window.  Not
  30.        * when Visual mode is active, because it's not clear what is selected
  31.        * then. */
  32. !     if (wp->w_p_cul && lnum == wp->w_cursor.lnum
  33. !                      && !(wp == curwin  && VIsual_active))
  34.       {
  35.       line_attr = hl_attr(HLF_CUL);
  36.       area_highlighting = TRUE;
  37. ***************
  38. *** 3543,3549 ****
  39.                * the current line differently.
  40.                * TODO: Can we use CursorLine instead of CursorLineNr
  41.                * when CursorLineNr isn't set? */
  42. !             if (((wp->w_p_cul && wp == curwin) || wp->w_p_rnu)
  43.                            && lnum == wp->w_cursor.lnum)
  44.               char_attr = hl_attr(HLF_CLN);
  45.   #endif
  46. --- 3543,3549 ----
  47.                * the current line differently.
  48.                * TODO: Can we use CursorLine instead of CursorLineNr
  49.                * when CursorLineNr isn't set? */
  50. !             if ((wp->w_p_cul || wp->w_p_rnu)
  51.                            && lnum == wp->w_cursor.lnum)
  52.               char_attr = hl_attr(HLF_CLN);
  53.   #endif
  54. ***************
  55. *** 3586,3593 ****
  56.               tocol += n_extra;
  57.   #ifdef FEAT_SYN_HL
  58.               /* combine 'showbreak' with 'cursorline' */
  59. !             if (wp->w_p_cul && wp == curwin
  60. !                          && lnum == wp->w_cursor.lnum)
  61.               char_attr = hl_combine_attr(char_attr, HLF_CLN);
  62.   #endif
  63.           }
  64. --- 3586,3592 ----
  65.               tocol += n_extra;
  66.   #ifdef FEAT_SYN_HL
  67.               /* combine 'showbreak' with 'cursorline' */
  68. !             if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
  69.               char_attr = hl_combine_attr(char_attr, HLF_CLN);
  70.   #endif
  71.           }
  72. *** ../vim-7.3.1281/src/version.c    2013-07-01 20:06:13.000000000 +0200
  73. --- src/version.c    2013-07-01 20:14:35.000000000 +0200
  74. ***************
  75. *** 730,731 ****
  76. --- 730,733 ----
  77.   {   /* Add new patch number below this line */
  78. + /**/
  79. +     1282,
  80.   /**/
  81.  
  82. -- 
  83. ARTHUR:  Shut up!  Will you shut up!
  84. DENNIS:  Ah, now we see the violence inherent in the system.
  85. ARTHUR:  Shut up!
  86. DENNIS:  Oh!  Come and see the violence inherent in the system!
  87.          HELP! HELP!  I'm being repressed!
  88.                                   The Quest for the Holy Grail (Monty Python)
  89.  
  90.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  91. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  92. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  93.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  94.