jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.550

073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.550
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.550
073263
Problem:    curs_rows() function is always called with the second argument
073263
            false.
073263
Solution:   Remove the argument. (Christian Brabandt)
073263
            validate_botline_win() can then also be removed.
073263
Files:      src/move.c
073263
073263
073263
*** ../vim-7.4.549/src/move.c	2014-09-23 18:37:52.422823701 +0200
073263
--- src/move.c	2014-12-13 20:54:33.687102446 +0100
073263
***************
073263
*** 23,30 ****
073263
  static void redraw_for_cursorline __ARGS((win_T *wp));
073263
  static int scrolljump_value __ARGS((void));
073263
  static int check_top_offset __ARGS((void));
073263
! static void curs_rows __ARGS((win_T *wp, int do_botline));
073263
! static void validate_botline_win __ARGS((win_T *wp));
073263
  static void validate_cheight __ARGS((void));
073263
  
073263
  typedef struct
073263
--- 23,29 ----
073263
  static void redraw_for_cursorline __ARGS((win_T *wp));
073263
  static int scrolljump_value __ARGS((void));
073263
  static int check_top_offset __ARGS((void));
073263
! static void curs_rows __ARGS((win_T *wp));
073263
  static void validate_cheight __ARGS((void));
073263
  
073263
  typedef struct
073263
***************
073263
*** 609,625 ****
073263
  }
073263
  
073263
  /*
073263
-  * Make sure the value of wp->w_botline is valid.
073263
-  */
073263
-     static void
073263
- validate_botline_win(wp)
073263
-     win_T	*wp;
073263
- {
073263
-     if (!(wp->w_valid & VALID_BOTLINE))
073263
- 	comp_botline(wp);
073263
- }
073263
- 
073263
- /*
073263
   * Mark curwin->w_botline as invalid (because of some change in the buffer).
073263
   */
073263
      void
073263
--- 608,613 ----
073263
***************
073263
*** 678,697 ****
073263
      update_topline();
073263
      check_cursor_moved(curwin);
073263
      if (!(curwin->w_valid & VALID_CROW))
073263
! 	curs_rows(curwin, FALSE);
073263
  }
073263
  #endif
073263
  
073263
  /*
073263
   * Compute wp->w_cline_row and wp->w_cline_height, based on the current value
073263
   * of wp->w_topline.
073263
-  *
073263
-  * Returns OK when cursor is in the window, FAIL when it isn't.
073263
   */
073263
      static void
073263
! curs_rows(wp, do_botline)
073263
      win_T	*wp;
073263
-     int		do_botline;		/* also compute w_botline */
073263
  {
073263
      linenr_T	lnum;
073263
      int		i;
073263
--- 666,682 ----
073263
      update_topline();
073263
      check_cursor_moved(curwin);
073263
      if (!(curwin->w_valid & VALID_CROW))
073263
! 	curs_rows(curwin);
073263
  }
073263
  #endif
073263
  
073263
  /*
073263
   * Compute wp->w_cline_row and wp->w_cline_height, based on the current value
073263
   * of wp->w_topline.
073263
   */
073263
      static void
073263
! curs_rows(wp)
073263
      win_T	*wp;
073263
  {
073263
      linenr_T	lnum;
073263
      int		i;
073263
***************
073263
*** 810,818 ****
073263
      redraw_for_cursorline(curwin);
073263
      wp->w_valid |= VALID_CROW|VALID_CHEIGHT;
073263
  
073263
-     /* validate botline too, if update_screen doesn't do it */
073263
-     if (do_botline && all_invalid)
073263
- 	validate_botline_win(wp);
073263
  }
073263
  
073263
  /*
073263
--- 795,800 ----
073263
***************
073263
*** 986,992 ****
073263
       * Next make sure that w_cline_row is valid.
073263
       */
073263
      if (!(curwin->w_valid & VALID_CROW))
073263
! 	curs_rows(curwin, FALSE);
073263
  
073263
      /*
073263
       * Compute the number of virtual columns.
073263
--- 968,974 ----
073263
       * Next make sure that w_cline_row is valid.
073263
       */
073263
      if (!(curwin->w_valid & VALID_CROW))
073263
! 	curs_rows(curwin);
073263
  
073263
      /*
073263
       * Compute the number of virtual columns.
073263
*** ../vim-7.4.549/src/version.c	2014-12-13 21:00:52.059036480 +0100
073263
--- src/version.c	2014-12-13 21:04:26.080739460 +0100
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     550,
073263
  /**/
073263
073263
-- 
073263
For humans, honesty is a matter of degree.  Engineers are always honest in
073263
matters of technology and human relationships.  That's why it's a good idea
073263
to keep engineers away from customers, romantic interests, and other people
073263
who can't handle the truth.
073263
				(Scott Adams - The Dilbert principle)
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///