* 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:
Roland Illig 2006-01-30 03:50:51 +00:00
parent 04000dcf84
commit 3f581584d5
2 changed files with 12 additions and 2 deletions

View File

@ -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'

View File

@ -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 :