mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-21 14:46:28 +00:00
Only move overlay line/pre-edit position when cursor is visible
This might help with #4849
This commit is contained in:
parent
f9f69a0577
commit
5a36fbfe7b
1 changed files with 1 additions and 1 deletions
|
|
@ -752,7 +752,7 @@ struct SaveOverlayLine {
|
|||
|
||||
static void
|
||||
save_overlay_line(struct SaveOverlayLine *sol) {
|
||||
if (sol->screen->overlay_line.is_active) {
|
||||
if (sol->screen->overlay_line.is_active && screen_is_cursor_visible(sol->screen)) {
|
||||
sol->overlay_text = get_overlay_text(sol->screen);
|
||||
deactivate_overlay_line(sol->screen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue