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:
parent
c2d8228a0a
commit
360f2e9140
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user