From fdab3d0b44d428a13e85b90c022105d13f965ddf Mon Sep 17 00:00:00 2001 From: Nathan Trapuzzano Date: Sun, 27 Oct 2013 00:18:28 -0400 Subject: [PATCH] * lisp/linum.el (linum-update-window): Fix boundary test. Fixes: debbugs:13446 --- etc/NEWS | 2 +- lisp/ChangeLog | 4 ++++ lisp/linum.el | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 3d0811abff4..6e18a4343c0 100644 --- 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'. * 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 diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 96f3ab25172..b70afc81540 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2013-10-27 Nathan Trapuzzano + + * linum.el (linum-update-window): Fix boundary test (bug#13446). + 2013-10-27 Dmitry Gutov * progmodes/ruby-mode.el (ruby-smie--bosp): Anything that goes diff --git a/lisp/linum.el b/lisp/linum.el index d9d7e5ad120..c2bc2fd91e1 100644 --- a/lisp/linum.el +++ b/lisp/linum.el @@ -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))) -- 2.39.5