aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-11-29 22:52:59 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-11-29 22:52:59 +0000
commitdeebbf0f032d4649f78206d5d8ef570afb065579 (patch)
tree2703f2ddd7eeb325c092cd5a8c2f2f61dabededd
parent00a187f5bb7dc08117965eae05df51d0eedac90e (diff)
Fix #57. Set the buffer as unibyte then multibyte again.
-rw-r--r--sx-question-print.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index 0959f36..9245331 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -195,6 +195,10 @@ QUESTION must be a data structure returned by `json-read'."
(sx-question-mode--print-section question)
(sx-assoc-let question
(mapc #'sx-question-mode--print-section .answers))
+ ;; Display weird chars correctly
+ (set-buffer-multibyte nil)
+ (set-buffer-multibyte t)
+ ;; Go up
(goto-char (point-min))
(sx-question-mode-next-section))