Commit 8941891c authored by Yuanle Song's avatar Yuanle Song
Browse files

minor, update docstring for zero-handle-preedit-char-*

parent 7935ceff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ return ch's Chinese punctuation if ch is converted. return nil otherwise"
	  (zero-show-candidates))))

(defun zero-handle-preedit-char-default (ch)
  "hanlde character insert in `*zero-state-im-preediting*' mode"
  "hanlde character insert in `*zero-state-im-preediting*' state"
  (cond
   ((= ch ?\s)
    (zero-commit-first-candidate-or-preedit-str))
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ otherwise, just return nil"
       (t (error "unexpected zero-pinyin-state: %s" zero-pinyin-state))))))

(defun zero-pinyin-handle-preedit-char (ch)
  "handle IM-PREEDITING state char insert. overrides `zero-handle-preedit-char-default'"
  "hanlde character insert in `*zero-state-im-preediting*' state. overrides `zero-handle-preedit-char-default'"
  (cond
   ((= ch ?\s)
    (zero-pinyin-commit-first-candidate-or-preedit-str))