* view.c (toggle_hex_mode): Now the hex cursor is always visible

after switching to hex mode.
This commit is contained in:
Roland Illig 2005-08-15 10:22:18 +00:00
parent 3dd9ec536b
commit 69e4d3f825
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,8 @@
* view.c (view_growbuf_read_until): When using mc_read, recover
from interrupted system calls.
* view.c (toggle_hex_mode): Now the hex cursor is always visible
after switching to hex mode.
2005-08-15 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>

View File

@ -2588,7 +2588,8 @@ toggle_hex_mode (WView *view)
view->hex_mode = !view->hex_mode;
if (view->hex_mode) {
view->hex_cursor =
view->hex_cursor = view->dpy_topleft;
view->dpy_topleft =
offset_rounddown (view->dpy_topleft, view->bytes_per_line);
view->widget.options |= W_WANT_CURSOR;
} else {