summaryrefslogtreecommitdiffstats
path: root/src/move.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-05-05 17:54:07 +0000
committerBram Moolenaar <Bram@vim.org>2007-05-05 17:54:07 +0000
commit9964e468c0209f6b8286e0b08109817c845a3079 (patch)
tree3c53288cff0d4c2e32169d8eb4cd53cc343ad0bc /src/move.c
parentd5ab34bd5ecc748d5502f149c476968e5ec2b7c9 (diff)
updated for version 7.1a
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c8
1 files changed, 4 insertions, 4 deletions
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
)
{