diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-29 22:52:59 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-29 22:52:59 +0000 |
commit | deebbf0f032d4649f78206d5d8ef570afb065579 (patch) | |
tree | 2703f2ddd7eeb325c092cd5a8c2f2f61dabededd | |
parent | 00a187f5bb7dc08117965eae05df51d0eedac90e (diff) |
Fix #57. Set the buffer as unibyte then multibyte again.
-rw-r--r-- | sx-question-print.el | 4 |
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)) |