]> git.eshelyaron.com Git - emacs.git/commitdiff
(isearch-mode-map): Don't count above 256
authorRichard M. Stallman <rms@gnu.org>
Sun, 21 Dec 1997 02:33:57 +0000 (02:33 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 21 Dec 1997 02:33:57 +0000 (02:33 +0000)
when setting up printing characters.

lisp/isearch.el

index 9d75bc3514303780d99299b95bd1b464603a327f..920a4be082d3ab5808d48a4e07e5fc294bf16cb7 100644 (file)
@@ -246,9 +246,9 @@ Default value, nil, means edit the string instead."
        (define-key map (make-string 1 i) 'isearch-other-control-char)
        (setq i (1+ i)))
 
-      ;; Printing chars extend the search string by default.
+      ;; Single-byte printing chars extend the search string by default.
       (setq i ?\ )
-      (while (< i (length (nth 1 map)))
+      (while (< i 256)
        (define-key map (vector i) 'isearch-printing-char)
        (setq i (1+ i)))