[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/nlinum ac8059b 18/20: * packages/nlinum/nlinum.el (nlin

From: Stefan Monnier
Subject: [elpa] externals/nlinum ac8059b 18/20: * packages/nlinum/nlinum.el (nlinum--check-narrowing): Reset current-line
Date: Sat, 28 Nov 2020 18:42:26 -0500 (EST)

branch: externals/nlinum
commit ac8059b27ec66e94062a20cdbe6b13795df4d385
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * packages/nlinum/nlinum.el (nlinum--check-narrowing): Reset current-line
 nlinum.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nlinum.el b/nlinum.el
index b4066a3..4a726c7 100644
--- a/nlinum.el
+++ b/nlinum.el
@@ -294,6 +294,7 @@ Linum mode is a buffer-local minor mode."
   ;; point-min is/was in the middle of a line.
   (unless (eql nlinum--last-point-min (point-min))
     (unless nlinum-widen (setq nlinum--line-number-cache nil))
+    (nlinum--current-line-update)
     (setq nlinum--last-point-min (point-min))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]