summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgmont Koblinger <egmont@gmail.com>2016-03-30 10:46:53 +0200
committerEgmont Koblinger <egmont@gmail.com>2016-03-30 10:47:39 +0200
commit66a4c95a414c38a010c30fc25c3534516c058055 (patch)
tree89bfee036182ba592320c9386051b04bb208d5d0
parent0af901285835b330348a576e71e3a320405f4be1 (diff)
downloadvte-66a4c95a414c38a010c30fc25c3534516c058055.tar.gz
widget: Properly remove the cursor from its old position
https://bugzilla.gnome.org/show_bug.cgi?id=764299 (cherry picked from commit e5a00b5b71194be9f2881dee67d82c308406dea7)
-rw-r--r--src/vte.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vte.cc b/src/vte.cc
index cf052bee..5ba70d3d 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4055,8 +4055,7 @@ next_match:
if ((saved_cursor.col != m_screen->cursor.col) ||
(saved_cursor.row != m_screen->cursor.row)) {
/* invalidate the old and new cursor positions */
- // FIXMEchpe shouldn't this be old_cursor_visible with an 'auto old_cursor_visible = ...'above?
- if (m_cursor_visible)
+ if (saved_cursor_visible)
invalidate_cell(saved_cursor.col, saved_cursor.row);
invalidate_cursor_once();
check_cursor_blink();
@@ -4064,7 +4063,6 @@ next_match:
queue_cursor_moved();
} else if ((saved_cursor_visible != m_cursor_visible) ||
(saved_cursor_style != m_cursor_style)) {
- // FIXMEchpe need to invalidate like invalidate_cursor_once() just for the saved_cursor coords!
invalidate_cell(saved_cursor.col, saved_cursor.row);
check_cursor_blink();
}