Skip to content

Commit 264cefb

Browse files
committed
Fix margins in the source window when using the terminal
1 parent db7b5c0 commit 264cefb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gdb-mi.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,18 +1850,18 @@ When FORCE is non-nil, it will display it, even if the window does not exist and
18501850
(when (window-live-p window)
18511851
(set-window-dedicated-p window nil)
18521852

1853-
(if (display-images-p)
1854-
(set-window-fringes window 8)
1855-
(set-window-margins window 2))
1856-
18571853
(when (and (not gdb--inhibit-display-source) buffer)
18581854
(set-window-buffer window buffer)
18591855
(when line
18601856
(with-selected-window window
18611857
(goto-char (point-min))
18621858
(forward-line (1- line))
18631859
(recenter))
1864-
(gdb--place-symbol session buffer line '((type . source-indicator)))))))))
1860+
(gdb--place-symbol session buffer line '((type . source-indicator)))))
1861+
1862+
(if (display-images-p)
1863+
(set-window-fringes window 8)
1864+
(set-window-margins window 2))))))
18651865

18661866

18671867
;; ------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)