diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-01 22:04:15 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-02 07:21:28 -0300 |
commit | 14f88b68653779a7918b857df9d5679cf4f79ba7 (patch) | |
tree | c4c632338e0ac8e07c5fa1c1099ca086bbbbea26 /src/nvim/normal.c | |
parent | 8a5a8dbf0f8dfec0b0494a0215891469753961a1 (diff) | |
download | rneovim-14f88b68653779a7918b857df9d5679cf4f79ba7.tar.gz rneovim-14f88b68653779a7918b857df9d5679cf4f79ba7.tar.bz2 rneovim-14f88b68653779a7918b857df9d5679cf4f79ba7.zip |
term: Move more mouse functions to mouse.c
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 0a43d59607..1b21100933 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -46,6 +46,7 @@ #include "nvim/misc2.h" #include "nvim/keymap.h" #include "nvim/move.h" +#include "nvim/mouse.h" #include "nvim/ops.h" #include "nvim/option.h" #include "nvim/quickfix.h" @@ -7374,3 +7375,11 @@ static void nv_cursorhold(cmdarg_T *cap) did_cursorhold = true; cap->retval |= CA_COMMAND_BUSY; /* don't call edit() now */ } + +/* + * Return TRUE when 'mousemodel' is set to "popup" or "popup_setpos". + */ +static int mouse_model_popup(void) +{ + return p_mousem[0] == 'p'; +} |