diff options
Diffstat (limited to 'lisp/linum.el')
-rw-r--r-- | lisp/linum.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/linum.el b/lisp/linum.el index b0281d366cd..1e029e508ef 100644 --- a/lisp/linum.el +++ b/lisp/linum.el @@ -28,6 +28,9 @@ ;; ;; Toggle display of line numbers with M-x linum-mode. To enable ;; line numbering in all buffers, use M-x global-linum-mode. +;; +;; Consider using native line numbers instead: +;; M-x display-line-numbers-mode ;;; Code: @@ -219,7 +222,7 @@ Linum mode is a buffer-local minor mode." ;; update overlays on deletions, and after newlines are inserted (when (or (= beg end) (= end (point-max)) - (string-match-p "\n" (buffer-substring-no-properties beg end))) + (string-search "\n" (buffer-substring-no-properties beg end))) (linum-update-current))) (defun linum-after-scroll (win _start) |