patch 8.1.1453: popup window "moved" property not implemented yet
Problem: Popup window "moved" property not implemented yet.
Solution: Implement it.
diff --git a/src/edit.c b/src/edit.c
index 6e4b474..ad25252 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -1456,8 +1456,7 @@
* inserting sequences of characters (e.g., for CTRL-R).
*/
void
-ins_redraw(
- int ready UNUSED) /* not busy with something */
+ins_redraw(int ready) // not busy with something
{
#ifdef FEAT_CONCEAL
linenr_T conceal_old_cursor_line = 0;
@@ -1468,10 +1467,12 @@
if (char_avail())
return;
-#if defined(FEAT_CONCEAL)
/* Trigger CursorMoved if the cursor moved. Not when the popup menu is
* visible, the command might delete it. */
if (ready && (has_cursormovedI()
+# ifdef FEAT_TEXT_PROP
+ || popup_visible
+# endif
# if defined(FEAT_CONCEAL)
|| curwin->w_p_cole > 0
# endif
@@ -1497,6 +1498,10 @@
update_curswant();
ins_apply_autocmds(EVENT_CURSORMOVEDI);
}
+#ifdef FEAT_TEXT_PROP
+ if (popup_visible)
+ popup_check_cursor_pos();
+#endif
# ifdef FEAT_CONCEAL
if (curwin->w_p_cole > 0)
{
@@ -1507,7 +1512,6 @@
# endif
last_cursormoved = curwin->w_cursor;
}
-#endif
/* Trigger TextChangedI if b_changedtick differs. */
if (ready && has_textchangedI()
@@ -3859,7 +3863,7 @@
if (replace_stack_len <= replace_stack_nr)
{
replace_stack_len += 50;
- p = alloc(sizeof(char_u) * replace_stack_len);
+ p = ALLOC_MULT(char_u, replace_stack_len);
if (p == NULL) /* out of memory */
{
replace_stack_len -= 50;