Karsten Hopp 6a9c30
To: vim_dev@googlegroups.com
Karsten Hopp 6a9c30
Subject: Patch 7.3.1282
Karsten Hopp 6a9c30
Fcc: outbox
Karsten Hopp 6a9c30
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 6a9c30
Mime-Version: 1.0
Karsten Hopp 6a9c30
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 6a9c30
Content-Transfer-Encoding: 8bit
Karsten Hopp 6a9c30
------------
Karsten Hopp 6a9c30
Karsten Hopp 6a9c30
Patch 7.3.1282 (after 7.3.1277)
Karsten Hopp 6a9c30
Problem:    'cursorline' not drawn in any other window. (Charles Campbell)
Karsten Hopp 6a9c30
Solution:   Do draw the cursor line in other windows.
Karsten Hopp 6a9c30
Files:	    src/screen.c
Karsten Hopp 6a9c30
Karsten Hopp 6a9c30
Karsten Hopp 6a9c30
*** ../vim-7.3.1281/src/screen.c	2013-06-30 17:23:46.000000000 +0200
Karsten Hopp 6a9c30
--- src/screen.c	2013-07-01 20:12:46.000000000 +0200
Karsten Hopp 6a9c30
***************
Karsten Hopp 6a9c30
*** 3369,3376 ****
Karsten Hopp 6a9c30
      /* Cursor line highlighting for 'cursorline' in the current window.  Not
Karsten Hopp 6a9c30
       * when Visual mode is active, because it's not clear what is selected
Karsten Hopp 6a9c30
       * then. */
Karsten Hopp 6a9c30
!     if (wp->w_p_cul && wp == curwin && lnum == wp->w_cursor.lnum
Karsten Hopp 6a9c30
! 							    && !VIsual_active)
Karsten Hopp 6a9c30
      {
Karsten Hopp 6a9c30
  	line_attr = hl_attr(HLF_CUL);
Karsten Hopp 6a9c30
  	area_highlighting = TRUE;
Karsten Hopp 6a9c30
--- 3369,3376 ----
Karsten Hopp 6a9c30
      /* Cursor line highlighting for 'cursorline' in the current window.  Not
Karsten Hopp 6a9c30
       * when Visual mode is active, because it's not clear what is selected
Karsten Hopp 6a9c30
       * then. */
Karsten Hopp 6a9c30
!     if (wp->w_p_cul && lnum == wp->w_cursor.lnum
Karsten Hopp 6a9c30
! 					 && !(wp == curwin  && VIsual_active))
Karsten Hopp 6a9c30
      {
Karsten Hopp 6a9c30
  	line_attr = hl_attr(HLF_CUL);
Karsten Hopp 6a9c30
  	area_highlighting = TRUE;
Karsten Hopp 6a9c30
***************
Karsten Hopp 6a9c30
*** 3543,3549 ****
Karsten Hopp 6a9c30
  		     * the current line differently.
Karsten Hopp 6a9c30
  		     * TODO: Can we use CursorLine instead of CursorLineNr
Karsten Hopp 6a9c30
  		     * when CursorLineNr isn't set? */
Karsten Hopp 6a9c30
! 		    if (((wp->w_p_cul && wp == curwin) || wp->w_p_rnu)
Karsten Hopp 6a9c30
  						 && lnum == wp->w_cursor.lnum)
Karsten Hopp 6a9c30
  			char_attr = hl_attr(HLF_CLN);
Karsten Hopp 6a9c30
  #endif
Karsten Hopp 6a9c30
--- 3543,3549 ----
Karsten Hopp 6a9c30
  		     * the current line differently.
Karsten Hopp 6a9c30
  		     * TODO: Can we use CursorLine instead of CursorLineNr
Karsten Hopp 6a9c30
  		     * when CursorLineNr isn't set? */
Karsten Hopp 6a9c30
! 		    if ((wp->w_p_cul || wp->w_p_rnu)
Karsten Hopp 6a9c30
  						 && lnum == wp->w_cursor.lnum)
Karsten Hopp 6a9c30
  			char_attr = hl_attr(HLF_CLN);
Karsten Hopp 6a9c30
  #endif
Karsten Hopp 6a9c30
***************
Karsten Hopp 6a9c30
*** 3586,3593 ****
Karsten Hopp 6a9c30
  			tocol += n_extra;
Karsten Hopp 6a9c30
  #ifdef FEAT_SYN_HL
Karsten Hopp 6a9c30
  		    /* combine 'showbreak' with 'cursorline' */
Karsten Hopp 6a9c30
! 		    if (wp->w_p_cul && wp == curwin
Karsten Hopp 6a9c30
! 						 && lnum == wp->w_cursor.lnum)
Karsten Hopp 6a9c30
  			char_attr = hl_combine_attr(char_attr, HLF_CLN);
Karsten Hopp 6a9c30
  #endif
Karsten Hopp 6a9c30
  		}
Karsten Hopp 6a9c30
--- 3586,3592 ----
Karsten Hopp 6a9c30
  			tocol += n_extra;
Karsten Hopp 6a9c30
  #ifdef FEAT_SYN_HL
Karsten Hopp 6a9c30
  		    /* combine 'showbreak' with 'cursorline' */
Karsten Hopp 6a9c30
! 		    if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
Karsten Hopp 6a9c30
  			char_attr = hl_combine_attr(char_attr, HLF_CLN);
Karsten Hopp 6a9c30
  #endif
Karsten Hopp 6a9c30
  		}
Karsten Hopp 6a9c30
*** ../vim-7.3.1281/src/version.c	2013-07-01 20:06:13.000000000 +0200
Karsten Hopp 6a9c30
--- src/version.c	2013-07-01 20:14:35.000000000 +0200
Karsten Hopp 6a9c30
***************
Karsten Hopp 6a9c30
*** 730,731 ****
Karsten Hopp 6a9c30
--- 730,733 ----
Karsten Hopp 6a9c30
  {   /* Add new patch number below this line */
Karsten Hopp 6a9c30
+ /**/
Karsten Hopp 6a9c30
+     1282,
Karsten Hopp 6a9c30
  /**/
Karsten Hopp 6a9c30
Karsten Hopp 6a9c30
-- 
Karsten Hopp 6a9c30
ARTHUR:  Shut up!  Will you shut up!
Karsten Hopp 6a9c30
DENNIS:  Ah, now we see the violence inherent in the system.
Karsten Hopp 6a9c30
ARTHUR:  Shut up!
Karsten Hopp 6a9c30
DENNIS:  Oh!  Come and see the violence inherent in the system!
Karsten Hopp 6a9c30
         HELP! HELP!  I'm being repressed!
Karsten Hopp 6a9c30
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 6a9c30
Karsten Hopp 6a9c30
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 6a9c30
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 6a9c30
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 6a9c30
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///