]> git.eshelyaron.com Git - emacs.git/commit
Fix infloop in lsp-mode
authorEli Zaretskii <eliz@gnu.org>
Tue, 4 May 2021 17:37:33 +0000 (20:37 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 4 May 2021 17:37:33 +0000 (20:37 +0300)
commitc36df52ff5c05826382d88ddbe3fffaa99d12597
treeeb58322a7fa29fd6f8bb7735983bceef8d89e4db
parent0c993ed1d3af6320a8aec6e94c0537bc62948701
Fix infloop in lsp-mode

* src/indent.c (line_number_display_width): Make sure the selected
window's buffer is current before using display code on it:
redisplay assumes that the window's buffer is current at all
times.  Reported by Evgeny Kurnevsky via lsp-mode's issue 1621,
https://github.com/emacs-lsp/lsp-mode/issues/1621.
src/indent.c