mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 11:12:06 +03:00
* view.c (struct WView): Changed the type of hex_mode to gboolean.
Fixed one non-boolean operation in toggle_wrap_mode().
This commit is contained in:
parent
f468578ff7
commit
2b41552c06
@ -10,6 +10,8 @@
|
||||
* view.c (struct WView): Removed the "first" field, as it was
|
||||
always 0.
|
||||
* view.c (struct WView): Renamed hexedit_text to hexview_in_text.
|
||||
* view.c (struct WView): Changed the type of hex_mode to gboolean.
|
||||
Fixed one non-boolean operation in toggle_wrap_mode().
|
||||
|
||||
2005-04-13 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
|
@ -125,6 +125,7 @@ struct WView {
|
||||
size_t ds_string_len; /* The length of the string */
|
||||
|
||||
/* Editor modes */
|
||||
gboolean hex_mode; /* Hexview or Hexedit */
|
||||
gboolean hexview_in_text; /* Is the hexview cursor in the text area? */
|
||||
|
||||
/* Display information */
|
||||
@ -146,7 +147,6 @@ struct WView {
|
||||
int wrap_mode:1; /* wrap_mode */
|
||||
|
||||
/* Mode variables */
|
||||
int hex_mode:1; /* Hexadecimal mode flag */
|
||||
int bytes_per_line; /* Number of bytes per line in hex mode */
|
||||
int viewer_magic_flag:1; /* Selected viewer */
|
||||
int viewer_nroff_flag:1; /* Do we do nroff style highlighting? */
|
||||
@ -1935,7 +1935,7 @@ toggle_wrap_mode (WView *view)
|
||||
static void
|
||||
toggle_hex_mode (WView *view)
|
||||
{
|
||||
view->hex_mode = 1 - view->hex_mode;
|
||||
view->hex_mode = !view->hex_mode;
|
||||
|
||||
if (view->hex_mode) {
|
||||
/* Shift the line start to 0x____0 on entry, restore it for text */
|
||||
|
Loading…
Reference in New Issue
Block a user