mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-26 05:02:03 +03:00
* view.c (view_display_hex): Bug fix: The list iterator from the
bytes that have been changed in the hex editor must be advanced even if the cursor is currently on a changed byte.
This commit is contained in:
parent
04000dcf84
commit
3f581584d5
@ -1,3 +1,9 @@
|
||||
2006-01-30 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* view.c (view_display_hex): Bug fix: The list iterator from the
|
||||
bytes that have been changed in the hex editor must be advanced
|
||||
even if the cursor is currently on a changed byte.
|
||||
|
||||
2006-01-29 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* file.h (safe_delete): Move declaration of `safe_delete'
|
||||
|
@ -1795,8 +1795,6 @@ view_display_hex (WView *view)
|
||||
|
||||
/* Changed bytes from the hex editor */
|
||||
} else if (curr && from == curr->offset) {
|
||||
c = curr->value;
|
||||
curr = curr->next;
|
||||
boldflag = MARK_CHANGED;
|
||||
|
||||
/* Marked bytes from the search functions */
|
||||
@ -1808,6 +1806,12 @@ view_display_hex (WView *view)
|
||||
boldflag = MARK_NORMAL;
|
||||
}
|
||||
|
||||
/* Determine the value of the current byte */
|
||||
if (curr != NULL && from == curr->offset) {
|
||||
c = curr->value;
|
||||
curr = curr->next;
|
||||
}
|
||||
|
||||
/* Select the color for the hex number */
|
||||
attrset (
|
||||
boldflag == MARK_NORMAL ? NORMAL_COLOR :
|
||||
|
Loading…
Reference in New Issue
Block a user