(count-lines): In selective-display case,
adjust value if end is not at bol.
This commit is contained in:
parent
675a998f8c
commit
043efc41eb
1 changed files with 5 additions and 1 deletions
|
@ -332,7 +332,11 @@ and the greater of them is not at the start of a line."
|
|||
(setq done (+ 40 done)))
|
||||
(while (re-search-forward "[\n\C-m]" nil t 1)
|
||||
(setq done (+ 1 done)))
|
||||
done)
|
||||
(goto-char (point-max))
|
||||
(if (and (/= start end)
|
||||
(not (bolp)))
|
||||
(1+ done)
|
||||
done))
|
||||
(- (buffer-size) (forward-line (buffer-size))))))))
|
||||
|
||||
(defun what-cursor-position ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue