Karsten Hopp 9272bd
To: vim-dev@vim.org
Karsten Hopp 9272bd
Subject: Patch 7.0.150
Karsten Hopp 9272bd
Fcc: outbox
Karsten Hopp 9272bd
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 9272bd
Mime-Version: 1.0
Karsten Hopp 9272bd
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 9272bd
Content-Transfer-Encoding: 8bit
Karsten Hopp 9272bd
------------
Karsten Hopp 9272bd
Karsten Hopp 9272bd
Patch 7.0.150
Karsten Hopp 9272bd
Problem:    When resizing the Vim window scrollbinding doesn't work. (Yakov
Karsten Hopp 9272bd
            Lerner)
Karsten Hopp 9272bd
Solution:   Do scrollbinding in set_shellsize().
Karsten Hopp 9272bd
Files:      src/term.c
Karsten Hopp 9272bd
    
Karsten Hopp 9272bd
Karsten Hopp 9272bd
*** ../vim-7.0.149/src/term.c	Wed Aug 16 21:42:34 2006
Karsten Hopp 9272bd
--- src/term.c	Tue Oct 24 11:26:33 2006
Karsten Hopp 9272bd
***************
Karsten Hopp 9272bd
*** 3137,3161 ****
Karsten Hopp 9272bd
  	    screenalloc(FALSE);
Karsten Hopp 9272bd
  	    repeat_message();
Karsten Hopp 9272bd
  	}
Karsten Hopp 9272bd
- 	else if (State & CMDLINE)
Karsten Hopp 9272bd
- 	{
Karsten Hopp 9272bd
- 	    update_screen(NOT_VALID);
Karsten Hopp 9272bd
- 	    redrawcmdline();
Karsten Hopp 9272bd
- 	}
Karsten Hopp 9272bd
  	else
Karsten Hopp 9272bd
  	{
Karsten Hopp 9272bd
! 	    update_topline();
Karsten Hopp 9272bd
! #if defined(FEAT_INS_EXPAND)
Karsten Hopp 9272bd
! 	    if (pum_visible())
Karsten Hopp 9272bd
  	    {
Karsten Hopp 9272bd
! 		redraw_later(NOT_VALID);
Karsten Hopp 9272bd
! 		ins_compl_show_pum(); /* This includes the redraw. */
Karsten Hopp 9272bd
  	    }
Karsten Hopp 9272bd
  	    else
Karsten Hopp 9272bd
  #endif
Karsten Hopp 9272bd
! 		update_screen(NOT_VALID);
Karsten Hopp 9272bd
! 	    if (redrawing())
Karsten Hopp 9272bd
! 		setcursor();
Karsten Hopp 9272bd
  	}
Karsten Hopp 9272bd
  	cursor_on();	    /* redrawing may have switched it off */
Karsten Hopp 9272bd
      }
Karsten Hopp 9272bd
--- 3138,3169 ----
Karsten Hopp 9272bd
  	    screenalloc(FALSE);
Karsten Hopp 9272bd
  	    repeat_message();
Karsten Hopp 9272bd
  	}
Karsten Hopp 9272bd
  	else
Karsten Hopp 9272bd
  	{
Karsten Hopp 9272bd
! #ifdef FEAT_SCROLLBIND
Karsten Hopp 9272bd
! 	    if (curwin->w_p_scb)
Karsten Hopp 9272bd
! 		do_check_scrollbind(TRUE);
Karsten Hopp 9272bd
! #endif
Karsten Hopp 9272bd
! 	    if (State & CMDLINE)
Karsten Hopp 9272bd
  	    {
Karsten Hopp 9272bd
! 		update_screen(NOT_VALID);
Karsten Hopp 9272bd
! 		redrawcmdline();
Karsten Hopp 9272bd
  	    }
Karsten Hopp 9272bd
  	    else
Karsten Hopp 9272bd
+ 	    {
Karsten Hopp 9272bd
+ 		update_topline();
Karsten Hopp 9272bd
+ #if defined(FEAT_INS_EXPAND)
Karsten Hopp 9272bd
+ 		if (pum_visible())
Karsten Hopp 9272bd
+ 		{
Karsten Hopp 9272bd
+ 		    redraw_later(NOT_VALID);
Karsten Hopp 9272bd
+ 		    ins_compl_show_pum(); /* This includes the redraw. */
Karsten Hopp 9272bd
+ 		}
Karsten Hopp 9272bd
+ 		else
Karsten Hopp 9272bd
  #endif
Karsten Hopp 9272bd
! 		    update_screen(NOT_VALID);
Karsten Hopp 9272bd
! 		if (redrawing())
Karsten Hopp 9272bd
! 		    setcursor();
Karsten Hopp 9272bd
! 	    }
Karsten Hopp 9272bd
  	}
Karsten Hopp 9272bd
  	cursor_on();	    /* redrawing may have switched it off */
Karsten Hopp 9272bd
      }
Karsten Hopp 9272bd
*** ../vim-7.0.149/src/version.c	Tue Oct 24 21:15:09 2006
Karsten Hopp 9272bd
--- src/version.c	Tue Oct 24 21:33:39 2006
Karsten Hopp 9272bd
***************
Karsten Hopp 9272bd
*** 668,669 ****
Karsten Hopp 9272bd
--- 668,671 ----
Karsten Hopp 9272bd
  {   /* Add new patch number below this line */
Karsten Hopp 9272bd
+ /**/
Karsten Hopp 9272bd
+     150,
Karsten Hopp 9272bd
  /**/
Karsten Hopp 9272bd
Karsten Hopp 9272bd
-- 
Karsten Hopp 9272bd
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 9272bd
106. When told to "go to your room" you inform your parents that you
Karsten Hopp 9272bd
     can't...because you were kicked out and banned.
Karsten Hopp 9272bd
Karsten Hopp 9272bd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 9272bd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 9272bd
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 9272bd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///