diff options
author | C. Davis <cd.rattan@gmail.com> | 2012-08-08 20:06:13 -0700 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-04-29 13:06:14 +0200 |
commit | 7c60ec12dec39ec63bf8246d478d9335a6451fb4 (patch) | |
tree | 90250fc208bc815200ab82cc2d5b28a4c124182c | |
parent | f723fc9619fa7cf69888680731b4329832659ff4 (diff) | |
download | samba-7c60ec12dec39ec63bf8246d478d9335a6451fb4.tar.gz samba-7c60ec12dec39ec63bf8246d478d9335a6451fb4.tar.bz2 samba-7c60ec12dec39ec63bf8246d478d9335a6451fb4.zip |
regedit:hexedit: make sure cursor is updated on physical screen.
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/utils/regedit_hexedit.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |