Skip to content

Commit

Permalink
Fix ace-pinyin issues 4
Browse files Browse the repository at this point in the history
  • Loading branch information
cute-jumper committed Aug 9, 2015
1 parent a70db34 commit cfd6d9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ace-pinyin.el
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ Default value is to use ace-jump-mode")
(let ((diff (- query-char ?a)))
(if (and (< diff 26) (>= diff 0))
(let ((regexp (nth diff ace-pinyin--char-table)))
(if prefix regexp (concat (format "[%c]\\|" query-char) regexp)))
(if prefix regexp
(concat (format "[%c]" query-char)
(unless (string= regexp "") "\\|")
regexp)))
(if (= 13 query-char)
"\n"
(regexp-quote (make-string 1 query-char))))))
Expand Down

0 comments on commit cfd6d9e

Please sign in to comment.