(regexp-opt-group): Use substring-no-properties for correct handling
of unibyte strings.
This commit is contained in:
parent
2d9653c498
commit
75407435b1
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ This means the number of non-shy regexp grouping constructs
|
|||
|
||||
;; Otherwise, divide the list into those that start with a
|
||||
;; particular letter and those that do not, and recurse on them.
|
||||
(let* ((char (char-to-string (string-to-char (car strings))))
|
||||
(let* ((char (substring-no-properties (car strings) 0 1))
|
||||
(half1 (all-completions char strings))
|
||||
(half2 (nthcdr (length half1) strings)))
|
||||
(concat open-group
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue