aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/menu.h1
-rw-r--r--src/normal.c55
2 files changed, 0 insertions, 56 deletions
diff --git a/src/menu.h b/src/menu.h
index e182cfcc70..04e21cdd54 100644
--- a/src/menu.h
+++ b/src/menu.h
@@ -58,7 +58,6 @@ int menu_is_menubar(char_u *name);
int menu_is_popup(char_u *name);
int menu_is_toolbar(char_u *name);
int menu_is_separator(char_u *name);
-void gui_show_popupmenu(void);
void ex_emenu(exarg_T *eap);
vimmenu_T *gui_find_menu(char_u *path_name);
void ex_menutranslate(exarg_T *eap);
diff --git a/src/normal.c b/src/normal.c
index 7c151bc862..9ef3912234 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -2208,62 +2208,7 @@ do_mouse (
if (!is_click)
return FALSE;
#endif
-#if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK) \
- || defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MSWIN) \
- || defined(FEAT_GUI_MAC) || defined(FEAT_GUI_PHOTON)
- if (gui.in_use) {
- jump_flags = 0;
- if (STRCMP(p_mousem, "popup_setpos") == 0) {
- /* First set the cursor position before showing the popup
- * menu. */
- if (VIsual_active) {
- pos_T m_pos;
-
- /*
- * set MOUSE_MAY_STOP_VIS if we are outside the
- * selection or the current window (might have false
- * negative here)
- */
- if (mouse_row < W_WINROW(curwin)
- || mouse_row
- > (W_WINROW(curwin) + curwin->w_height))
- jump_flags = MOUSE_MAY_STOP_VIS;
- else if (get_fpos_of_mouse(&m_pos) != IN_BUFFER)
- jump_flags = MOUSE_MAY_STOP_VIS;
- else {
- if ((lt(curwin->w_cursor, VIsual)
- && (lt(m_pos, curwin->w_cursor)
- || lt(VIsual, m_pos)))
- || (lt(VIsual, curwin->w_cursor)
- && (lt(m_pos, VIsual)
- || lt(curwin->w_cursor, m_pos)))) {
- jump_flags = MOUSE_MAY_STOP_VIS;
- } else if (VIsual_mode == Ctrl_V) {
- getvcols(curwin, &curwin->w_cursor, &VIsual,
- &leftcol, &rightcol);
- getvcol(curwin, &m_pos, NULL, &m_pos.col, NULL);
- if (m_pos.col < leftcol || m_pos.col > rightcol)
- jump_flags = MOUSE_MAY_STOP_VIS;
- }
- }
- } else
- jump_flags = MOUSE_MAY_STOP_VIS;
- }
- if (jump_flags) {
- jump_flags = jump_to_mouse(jump_flags, NULL, which_button);
- update_curbuf(
- VIsual_active ? INVERTED :
- VALID);
- setcursor();
- out_flush(); /* Update before showing popup menu */
- }
- gui_show_popupmenu();
- return (jump_flags & CURSOR_MOVED) != 0;
- } else
- return FALSE;
-#else
return FALSE;
-#endif
}
if (which_button == MOUSE_LEFT
&& (mod_mask & (MOD_MASK_SHIFT|MOD_MASK_ALT))) {