From 9964e468c0209f6b8286e0b08109817c845a3079 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 5 May 2007 17:54:07 +0000 Subject: updated for version 7.1a --- src/move.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/move.c') diff --git a/src/move.c b/src/move.c index c0bbac265e..f21f5e9f6b 100644 --- a/src/move.c +++ b/src/move.c @@ -166,7 +166,7 @@ update_topline() #ifdef FEAT_MOUSE /* When dragging with the mouse, don't scroll that quickly */ - if (mouse_dragging) + if (mouse_dragging > 0) p_so = mouse_dragging - 1; #endif @@ -1995,7 +1995,7 @@ scroll_cursor_bot(min_scroll, set_topbot) if ((((scrolled <= 0 || scrolled >= min_scroll) && extra >= ( #ifdef FEAT_MOUSE - mouse_dragging ? mouse_dragging - 1 : + mouse_dragging > 0 ? mouse_dragging - 1 : #endif p_so)) || boff.lnum + 1 > curbuf->b_ml.ml_line_count) @@ -2209,7 +2209,7 @@ cursor_correct() above_wanted = p_so; below_wanted = p_so; #ifdef FEAT_MOUSE - if (mouse_dragging) + if (mouse_dragging > 0) { above_wanted = mouse_dragging - 1; below_wanted = mouse_dragging - 1; @@ -2225,7 +2225,7 @@ cursor_correct() validate_botline(); if (curwin->w_botline == curbuf->b_ml.ml_line_count + 1 #ifdef FEAT_MOUSE - && !mouse_dragging + && mouse_dragging == 0 #endif ) { -- cgit v1.2.3