Skip to content

Commit 5472e24

Browse files
author
tianshu
committed
handle read-only stickiness
1 parent b296856 commit 5472e24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rime.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,9 @@ By default the input-method will not handle DEL, so we need this command."
806806
(defun rime--text-read-only-p ()
807807
"Return t if the text at point is read-only."
808808
(and (or buffer-read-only
809-
(get-char-property (point) 'read-only))
809+
(get-pos-property (point) 'read-only))
810810
(not (or inhibit-read-only
811-
(get-char-property (point) 'inhibit-read-only)))))
811+
(get-pos-property (point) 'inhibit-read-only)))))
812812

813813
(defun rime-input-method (key)
814814
"Process KEY with input method."

0 commit comments

Comments
 (0)