aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-24 04:35:28 +0000
committerRichard M. Stallman1993-11-24 04:35:28 +0000
commit043efc41eb942f4712b83bf93f4193767ff842b5 (patch)
tree0d658d82fc0a55b746595f737316adf828cd6b65
parent675a998f8c373b8d3ec180524dc22568a597dfce (diff)
downloademacs-043efc41eb942f4712b83bf93f4193767ff842b5.tar.gz
emacs-043efc41eb942f4712b83bf93f4193767ff842b5.zip
(count-lines): In selective-display case,
adjust value if end is not at bol.
-rw-r--r--lisp/simple.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index e6a24cb49a1..85557739654 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -332,7 +332,11 @@ and the greater of them is not at the start of a line."
332 (setq done (+ 40 done))) 332 (setq done (+ 40 done)))
333 (while (re-search-forward "[\n\C-m]" nil t 1) 333 (while (re-search-forward "[\n\C-m]" nil t 1)
334 (setq done (+ 1 done))) 334 (setq done (+ 1 done)))
335 done) 335 (goto-char (point-max))
336 (if (and (/= start end)
337 (not (bolp)))
338 (1+ done)
339 done))
336 (- (buffer-size) (forward-line (buffer-size)))))))) 340 (- (buffer-size) (forward-line (buffer-size))))))))
337 341
338(defun what-cursor-position () 342(defun what-cursor-position ()