mirror of
https://github.com/neovim/neovim.git
synced 2026-01-13 07:51:28 +10:00
Calling printdiagraph() with msg_silent != 0 can result in an endless loop because the loop condition never changes, if msg_col is never changed. To fix this, calculate the number of iterations before the loop, which is always smaller than list_width.