summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2012-01-20 01:31:53 +0100
committerBerke Viktor <berkeviktor@aol.com>2012-01-20 01:31:53 +0100
commitc1ec6d1039317342ed339f2ca1b52e2f4f3b07d3 (patch)
treead7008a20b176eafd12e6fa6dba0ea36c4d019fd /src/common/text.c
parenta9fb6a18ecaff6b2f39a4710677385557af15924 (diff)
allow for disabling the filtering mechanism
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 93392d1a..64102908 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -374,11 +374,14 @@ scrollback_load (session *sess)
 			if (text)
 			{
 				text = strip_color (text + 1, -1, STRIP_COLOR);
-				cleaned_text = text_replace_non_bmp (text, -1, &cleaned_len);
-				if (cleaned_text != NULL)
+				if (prefs.text_nonbmp)
 				{
-					g_free (text);
-					text = cleaned_text;
+					cleaned_text = text_replace_non_bmp (text, -1, &cleaned_len);
+					if (cleaned_text != NULL)
+					{
+						g_free (text);
+						text = cleaned_text;
+					}
 				}
 				fe_print_text (sess, text, stamp);
 				g_free (text);