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:
14
src/edit.c
14
src/edit.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user