From 20116294491c5a61c3850f16d136977ab275c90b Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sun, 8 Jan 2006 07:34:59 +0000 Subject: [PATCH] Fix add_document_to_string to actually add stuff Revision 1.147 (14 months, 2 weeks ago) broke the logic so that only frame characters were added. This fixes that change, getting us halfway back to a working current_document_formatted function for Lua. --- src/viewer/dump/dump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/viewer/dump/dump.c b/src/viewer/dump/dump.c index 3e038502c..e88115fbf 100644 --- a/src/viewer/dump/dump.c +++ b/src/viewer/dump/dump.c @@ -335,8 +335,9 @@ add_document_to_string(struct string *string, struct document *document) if (!isscreensafe(data)) { white++; continue; - } else if (frame && data >= 176 && data < 224) { - data = frame_dumb[data - 176]; + } else { + if (frame && data >= 176 && data < 224) + data = frame_dumb[data - 176]; if (data <= ' ') { /* Count spaces. */