mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
* view.c (toggle_hex_mode): Now the hex cursor is always visible
after switching to hex mode.
This commit is contained in:
parent
3dd9ec536b
commit
69e4d3f825
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* view.c (view_growbuf_read_until): When using mc_read, recover
|
* view.c (view_growbuf_read_until): When using mc_read, recover
|
||||||
from interrupted system calls.
|
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>
|
2005-08-15 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
|
||||||
|
|
||||||
|
@ -2588,7 +2588,8 @@ toggle_hex_mode (WView *view)
|
|||||||
view->hex_mode = !view->hex_mode;
|
view->hex_mode = !view->hex_mode;
|
||||||
|
|
||||||
if (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);
|
offset_rounddown (view->dpy_topleft, view->bytes_per_line);
|
||||||
view->widget.options |= W_WANT_CURSOR;
|
view->widget.options |= W_WANT_CURSOR;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user