1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

(Text Lines): Don't add -1 in current-line.

This commit is contained in:
Richard M. Stallman 2004-02-17 01:07:22 +00:00
parent c2d8228a0a
commit 360f2e9140

View File

@ -403,8 +403,7 @@ Here is an example of using @code{count-lines}:
(defun current-line ()
"Return the vertical position of point@dots{}"
(+ (count-lines (window-start) (point))
(if (= (current-column) 0) 1 0)
-1))
(if (= (current-column) 0) 1 0)))
@end group
@end example
@end defun