summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
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);