Bram,
the curs_rows() function is always called with the second argument
false, so we could remove that.
Attached is a patch.
Best,
Christian
--
Fliegen und Menschen haben eines gemeinsam: Man kann beide mit der
Zeitung erschlagen.
-- Dieter Hildebrandt
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/move.c b/src/move.c
--- a/src/move.c
+++ b/src/move.c
@@ -23,7 +23,7 @@ static void comp_botline __ARGS((win_T *
static void redraw_for_cursorline __ARGS((win_T *wp));
static int scrolljump_value __ARGS((void));
static int check_top_offset __ARGS((void));
-static void curs_rows __ARGS((win_T *wp, int do_botline));
+static void curs_rows __ARGS((win_T *wp));
static void validate_botline_win __ARGS((win_T *wp));
static void validate_cheight __ARGS((void));
@@ -678,7 +678,7 @@ validate_cline_row()
update_topline();
check_cursor_moved(curwin);
if (!(curwin->w_valid & VALID_CROW))
- curs_rows(curwin, FALSE);
+ curs_rows(curwin);
}
#endif
@@ -686,12 +686,10 @@ validate_cline_row()
* Compute wp->w_cline_row and wp->w_cline_height, based on the current value
* of wp->w_topline.
*
- * Returns OK when cursor is in the window, FAIL when it isn't.
*/
static void
-curs_rows(wp, do_botline)
+curs_rows(wp)
win_T *wp;
- int do_botline; /* also compute w_botline */
{
linenr_T lnum;
int i;
@@ -810,9 +808,6 @@ curs_rows(wp, do_botline)
redraw_for_cursorline(curwin);
wp->w_valid |= VALID_CROW|VALID_CHEIGHT;
- /* validate botline too, if update_screen doesn't do it */
- if (do_botline && all_invalid)
- validate_botline_win(wp);
}
/*
@@ -986,7 +981,7 @@ curs_columns(may_scroll)
* Next make sure that w_cline_row is valid.
*/
if (!(curwin->w_valid & VALID_CROW))
- curs_rows(curwin, FALSE);
+ curs_rows(curwin);
/*
* Compute the number of virtual columns.