subr.el (posn-col-row): Pay attention to header line. (Bug#7390)
This commit is contained in:
parent
de02effd8d
commit
e68afd742f
2 changed files with 6 additions and 1 deletions
|
@ -955,7 +955,8 @@ and `event-end' functions."
|
|||
((null spacing)
|
||||
(setq spacing 0)))
|
||||
(cons (/ (car pair) (frame-char-width frame))
|
||||
(/ (cdr pair) (+ (frame-char-height frame) spacing))))))))
|
||||
(- (/ (cdr pair) (+ (frame-char-height frame) spacing))
|
||||
(if (null header-line-format) 0 1))))))))
|
||||
|
||||
(defun posn-actual-col-row (position)
|
||||
"Return the actual column and row in POSITION, measured in characters.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue