]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/linum.el (linum-update-window): Fix boundary test.
authorNathan Trapuzzano <nbtrap@nbtrap.com>
Sun, 27 Oct 2013 04:18:28 +0000 (00:18 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 27 Oct 2013 04:18:28 +0000 (00:18 -0400)
Fixes: debbugs:13446
etc/NEWS
lisp/ChangeLog
lisp/linum.el

index 3d0811abff44a75527574a035f6eddf147ea9eef..6e18a4343c0080668f900d59b0cfd8494ef1468d 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -216,7 +216,7 @@ You can pick the name of the function and the variables with `C-x 4 a'.
 \f
 * Changes in Specialized Modes and Packages in Emacs 24.4
 
-** prolog-use-smie has been remvoed, along with the non-SMIE indentation code.
+** prolog-use-smie has been removed, along with the non-SMIE indentation code.
 
 ** SMIE indentation can be customized via `smie-config'.
 The customizaton can be guessed by Emacs by providing a sample indented
index 96f3ab25172b7772ee75bfb4bf8a12aa5656a525..b70afc81540894a29b6c64413c56faa7c6ffce75 100644 (file)
@@ -1,3 +1,7 @@
+2013-10-27  Nathan Trapuzzano  <nbtrap@nbtrap.com>
+
+       * linum.el (linum-update-window): Fix boundary test (bug#13446).
+
 2013-10-27  Dmitry Gutov  <dgutov@yandex.ru>
 
        * progmodes/ruby-mode.el (ruby-smie--bosp): Anything that goes
index d9d7e5ad120e5355d66b64eaee9dbbad620d96b9..c2bc2fd91e180a2aae8fe79152abb1fe8c0738cd 100644 (file)
@@ -152,7 +152,7 @@ Linum mode is a buffer-local minor mode."
     (run-hooks 'linum-before-numbering-hook)
     ;; Create an overlay (or reuse an existing one) for each
     ;; line visible in this window, if necessary.
-    (while (and (not (eobp)) (<= (point) limit))
+    (while (and (not (eobp)) (< (point) limit))
       (let* ((str (if fmt
                       (propertize (format fmt line) 'face 'linum)
                     (funcall linum-format line)))