Fixed toggle-word-case

This commit is contained in:
julian 2021-07-08 11:36:54 +02:00
parent 89bbb4623d
commit f22af77090

View File

@ -140,7 +140,7 @@
(setq $p1 (point))
(skip-chars-forward "[:alpha:]")
(setq $p2 (point))))
(let ((first-char-prop (get-char-code-property (char-after (point)) 'general-category)))
(let ((first-char-prop (get-char-code-property (char-after $p1) 'general-category)))
(cond ((string= "Ll" first-char-prop) ; Lower case
(upcase-region $p1 (+ $p1 1)))
((string= "Lu" first-char-prop) ; Upper case