forked from aniani/vim
patch 8.2.3763: when editing the cmdline a callback may cause a scroll up
Problem: When editing the command line a FocusLost callback may cause the
screen to scroll up.
Solution: Do not redraw at the last line but at the same place where the
command line was before. (closes #9295)
This commit is contained in:
@@ -173,7 +173,7 @@ invoke_sound_callback(void)
|
||||
delete_sound_callback(scb->scb_callback);
|
||||
vim_free(scb);
|
||||
}
|
||||
redraw_after_callback(TRUE);
|
||||
redraw_after_callback(TRUE, FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -327,7 +327,7 @@ sound_wndproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
clear_tv(&rettv);
|
||||
|
||||
delete_sound_callback(p);
|
||||
redraw_after_callback(TRUE);
|
||||
redraw_after_callback(TRUE, FALSE);
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user