aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/term.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-02 07:19:51 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-12-02 07:21:34 -0300
commit6436908ffe1906804a13073dd474e109e8be1d91 (patch)
tree572598e6b335008a71d6bc76faf6c5be7185d91c /src/nvim/term.c
parent14f88b68653779a7918b857df9d5679cf4f79ba7 (diff)
downloadrneovim-6436908ffe1906804a13073dd474e109e8be1d91.tar.gz
rneovim-6436908ffe1906804a13073dd474e109e8be1d91.tar.bz2
rneovim-6436908ffe1906804a13073dd474e109e8be1d91.zip
mouse: Remove CHECK_DOUBLE_CLICK conditionals
This is now always defined.
Diffstat (limited to 'src/nvim/term.c')
-rw-r--r--src/nvim/term.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/nvim/term.c b/src/nvim/term.c
index 064535a1dd..54508b1daa 100644
--- a/src/nvim/term.c
+++ b/src/nvim/term.c
@@ -2819,11 +2819,9 @@ static void switch_to_8bit(void)
LOG_TR("Switching to 8 bit");
}
-#ifdef CHECK_DOUBLE_CLICK
static linenr_T orig_topline = 0;
static int orig_topfill = 0;
-#endif
-#if defined(CHECK_DOUBLE_CLICK) || defined(PROTO)
+
/*
* Checking for double clicks ourselves.
* "orig_topline" is used to avoid detecting a double-click when the window
@@ -2838,7 +2836,6 @@ void set_mouse_topline(win_T *wp)
orig_topline = wp->w_topline;
orig_topfill = wp->w_topfill;
}
-#endif
/*
* Check if typebuf.tb_buf[] contains a terminal key code.
@@ -3529,7 +3526,6 @@ int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen)
is_drag = TRUE;
current_button = held_button;
} else if (wheel_code == 0) {
-# ifdef CHECK_DOUBLE_CLICK
{
static int orig_mouse_col = 0;
static int orig_mouse_row = 0;
@@ -3563,9 +3559,6 @@ int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen)
orig_topline = curwin->w_topline;
orig_topfill = curwin->w_topfill;
}
-# else
- orig_num_clicks = NUM_MOUSE_CLICKS(mouse_code);
-# endif
is_click = TRUE;
orig_mouse_code = mouse_code;
}