summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-02 18:40:06 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-02 18:40:06 +0200
commit3397f74ac2ac27f1eef48e950c3c8eeb0338fe55 (patch)
tree7ca95e2cfc692c2d90830948c4a4a6c1b620cd22 /src/main.c
parentb0ebbda06cf1a4a7c40cb274529c4c53de534e32 (diff)
downloadvim-git-3397f74ac2ac27f1eef48e950c3c8eeb0338fe55.tar.gz
patch 8.1.1453: popup window "moved" property not implemented yetv8.1.1453
Problem: Popup window "moved" property not implemented yet. Solution: Implement it.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index e1ddbf7e9..e9165c6bf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1159,6 +1159,9 @@ main_loop(
/* Trigger CursorMoved if the cursor moved. */
if (!finish_op && (
has_cursormoved()
+#ifdef FEAT_TEXT_PROP
+ || popup_visible
+#endif
#ifdef FEAT_CONCEAL
|| curwin->w_p_cole > 0
#endif
@@ -1168,14 +1171,18 @@ main_loop(
if (has_cursormoved())
apply_autocmds(EVENT_CURSORMOVED, NULL, NULL,
FALSE, curbuf);
-# ifdef FEAT_CONCEAL
+#ifdef FEAT_TEXT_PROP
+ if (popup_visible)
+ popup_check_cursor_pos();
+#endif
+#ifdef FEAT_CONCEAL
if (curwin->w_p_cole > 0)
{
conceal_old_cursor_line = last_cursormoved.lnum;
conceal_new_cursor_line = curwin->w_cursor.lnum;
conceal_update_lines = TRUE;
}
-# endif
+#endif
last_cursormoved = curwin->w_cursor;
}