summaryrefslogtreecommitdiffstats
path: root/patches/source/vim/patches/7.4.173
blob: 1756bdcd093d04fa87e40def94ff30ec7118bc08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
To: vim_dev@googlegroups.com
Subject: Patch 7.4.173
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.4.173
Problem:    When using scrollbind the cursor can end up below the last line.
	    (mvxxc)
Solution:   Reset w_botfill when scrolling up. (Christian Brabandt)
Files:	    src/move.c


*** ../vim-7.4.172/src/move.c	2012-11-28 18:15:42.000000000 +0100
--- src/move.c	2014-02-11 15:39:24.758138292 +0100
***************
*** 2101,2106 ****
--- 2101,2107 ----
      int		used;
      lineoff_T	loff;
      lineoff_T	boff;
+     linenr_T	old_topline = curwin->w_topline;
  
      loff.lnum = boff.lnum = curwin->w_cursor.lnum;
  #ifdef FEAT_FOLDING
***************
*** 2156,2161 ****
--- 2157,2164 ----
  	curwin->w_topline = topline;
  #ifdef FEAT_DIFF
      curwin->w_topfill = topfill;
+     if (old_topline > curwin->w_topline + curwin->w_height)
+ 	curwin->w_botfill = FALSE;
      check_topfill(curwin, FALSE);
  #endif
      curwin->w_valid &= ~(VALID_WROW|VALID_CROW|VALID_BOTLINE|VALID_BOTLINE_AP);
*** ../vim-7.4.172/src/version.c	2014-02-11 15:23:27.942123631 +0100
--- src/version.c	2014-02-11 15:38:34.562137523 +0100
***************
*** 740,741 ****
--- 740,743 ----
  {   /* Add new patch number below this line */
+ /**/
+     173,
  /**/

-- 
   GALAHAD hurries to the door and pushes through it.  As he leaves the room
   we CUT TO the reverse to show that he is now in a room full of bathing
   and romping GIRLIES, all innocent, wide-eyed and beautiful.  They smile
   enchantingly at him as he tries to keep walking without being diverted by
   the lovely sights assaulting his eyeballs.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///