mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 11:12:06 +03:00
* view.c: Made the F2 key action much simpler---now it just
toggles between hexview and hexedit mode. Switching between text and hex mode can be done with <tab>, as before.
This commit is contained in:
parent
9d44b75ad5
commit
75691621a6
@ -1,3 +1,9 @@
|
||||
2005-05-21 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* view.c: Made the F2 key action much simpler---now it just
|
||||
toggles between hexview and hexedit mode. Switching between text
|
||||
and hex mode can be done with <tab>, as before.
|
||||
|
||||
2005-05-20 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* find.c: Fix warnings reported by gcc 4.0.0.
|
||||
|
@ -1952,11 +1952,7 @@ static void
|
||||
toggle_hexedit_mode (WView *view)
|
||||
{
|
||||
get_bottom_first (view, 1, 1);
|
||||
if (view->hexedit_mode) {
|
||||
view->hexview_in_text = !view->hexview_in_text;
|
||||
} else {
|
||||
view->hexedit_mode = !view->hexedit_mode;
|
||||
}
|
||||
view->hexedit_mode = !view->hexedit_mode;
|
||||
view_labels (view);
|
||||
view->dirty++;
|
||||
view_update (view);
|
||||
@ -2235,8 +2231,7 @@ view_labels (WView *view)
|
||||
|
||||
if (view->hex_mode)
|
||||
if (view->hexedit_mode)
|
||||
my_define (h, 2, view->hexview_in_text ? _("EdHex") : _("EdText"),
|
||||
toggle_hexedit_mode, view);
|
||||
my_define (h, 2, _("View"), toggle_hexedit_mode, view);
|
||||
else {
|
||||
/* FIXME: add new function view_datasource_is_editable() */
|
||||
/* FIXME: why is editing in panel mode disabled? */
|
||||
|
Loading…
Reference in New Issue
Block a user