Fix line width in M-x term on -nw with line numbers
* lisp/window.el (window-max-chars-per-line): Make the line width more correct in the presence of display-line-numbers-mode (bug#34513).
This commit is contained in:
parent
d2b754ec1a
commit
e8d80f1e14
1 changed files with 2 additions and 1 deletions
|
@ -2172,7 +2172,8 @@ the font."
|
|||
(with-selected-window (window-normalize-window window t)
|
||||
(let* ((window-width (window-body-width window t))
|
||||
(font-width (window-font-width window face))
|
||||
(ncols (/ window-width font-width)))
|
||||
(ncols (- (/ window-width font-width)
|
||||
(line-number-display-width 'columns))))
|
||||
(if (and (display-graphic-p)
|
||||
overflow-newline-into-fringe
|
||||
(not
|
||||
|
|
Loading…
Add table
Reference in a new issue