File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -516,17 +516,20 @@ FRAME just below the symbol at point."
516
516
(if (< (car it) (window-start ))
517
517
(cons 0 0 )
518
518
(posn-x-y (posn-at-point (1- (window-end ))))))))
519
- (frame-relative-symbol-x (+ start-x x (* (frame-char-width ) 2 )))
520
- (frame-relative-symbol-y (+ start-y y))
519
+ (char-width (frame-char-width ))
521
520
(char-height (frame-char-height ))
521
+ (sbw (or (window-scroll-bar-width ) 0 ))
522
+ (sbh (or (window-scroll-bar-height ) 0 ))
523
+ (frame-relative-symbol-x (+ start-x x (* char-width 2 ) sbw))
524
+ (frame-relative-symbol-y (+ start-y y (- 0 sbh)))
522
525
; ; Make sure the frame is positioned horizontally such that
523
526
; ; it does not go beyond the frame boundaries.
524
527
(frame-x (or (and (<= (frame-outer-width ) (+ frame-relative-symbol-x width))
525
528
(- x (- (+ frame-relative-symbol-x width)
526
529
(frame-outer-width ))))
527
530
x))
528
531
(frame-y (+ (or (and (<= height frame-relative-symbol-y)
529
- (- y height))
532
+ (- y height sbh ))
530
533
(+ y char-height))
531
534
(if (fboundp 'window-tab-line-height ) (window-tab-line-height) 0 ))))
532
535
(cons (+ start-x frame-x) (+ start-y frame-y))))
You can’t perform that action at this time.
0 commit comments