summaryrefslogtreecommitdiff
path: root/lisp/linum.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/linum.el')
-rw-r--r--lisp/linum.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/linum.el b/lisp/linum.el
index b0281d366cd..c78f596d768 100644
--- a/lisp/linum.el
+++ b/lisp/linum.el
@@ -219,7 +219,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)