1
0
forked from aniani/vim

patch 8.1.1453: popup window "moved" property not implemented yet

Problem:    Popup window "moved" property not implemented yet.
Solution:   Implement it.
This commit is contained in:
Bram Moolenaar
2019-06-02 18:40:06 +02:00
parent b0ebbda06c
commit 3397f74ac2
11 changed files with 202 additions and 31 deletions

View File

@@ -1456,8 +1456,7 @@ ins_need_undo_get(void)
* 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 @@ ins_redraw(
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 @@ ins_redraw(
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 @@ ins_redraw(
# endif
last_cursormoved = curwin->w_cursor;
}
#endif
/* Trigger TextChangedI if b_changedtick differs. */
if (ready && has_textchangedI()
@@ -3859,7 +3863,7 @@ replace_push(
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;