From 7c60ec12dec39ec63bf8246d478d9335a6451fb4 Mon Sep 17 00:00:00 2001 From: "C. Davis" Date: Wed, 8 Aug 2012 20:06:13 -0700 Subject: regedit:hexedit: make sure cursor is updated on physical screen. Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam --- source3/utils/regedit_hexedit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/utils/regedit_hexedit.c b/source3/utils/regedit_hexedit.c index 69ed622c7e..c86feaddb0 100644 --- a/source3/utils/regedit_hexedit.c +++ b/source3/utils/regedit_hexedit.c @@ -71,8 +71,10 @@ void hexedit_set_cursor(struct hexedit *buf) werase(buf->status_line); wprintw(buf->status_line, "Len:%lu Off:%lu Val:0x%X", buf->len, buf->cursor_offset, buf->data[buf->cursor_offset]); - wrefresh(buf->status_line); wmove(buf->win, buf->cursor_y, buf->cursor_x); + wcursyncup(buf->win); + wsyncup(buf->win); + untouchwin(buf->win); } void hexedit_refresh(struct hexedit *buf) -- cgit