diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-02 07:51:18 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-02 07:51:18 -0300 |
commit | 888511862bc7b0850e2695e3edd46212dc78cc47 (patch) | |
tree | 572598e6b335008a71d6bc76faf6c5be7185d91c /src/nvim/normal.c | |
parent | 212cb13ca4526350ce761378505536fafb559eab (diff) | |
parent | 6436908ffe1906804a13073dd474e109e8be1d91 (diff) | |
download | rneovim-888511862bc7b0850e2695e3edd46212dc78cc47.tar.gz rneovim-888511862bc7b0850e2695e3edd46212dc78cc47.tar.bz2 rneovim-888511862bc7b0850e2695e3edd46212dc78cc47.zip |
Merge PR #1591 'Prepare to rewrite the terminal UI'
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'; +} |