jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.550

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