diff options
author | oni-link <knil.ino@gmail.com> | 2016-08-12 01:10:32 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-08-11 19:10:32 -0400 |
commit | c10fe010f1655b1c02c0fa38ea3d969b86a72bcd (patch) | |
tree | 0c6f32b440491cc71ea3ff6a40cc19b65299d732 /test/functional/api/vim_spec.lua | |
parent | a1682281f427ab011930f421e5691cf4bf230df1 (diff) | |
download | rneovim-c10fe010f1655b1c02c0fa38ea3d969b86a72bcd.tar.gz rneovim-c10fe010f1655b1c02c0fa38ea3d969b86a72bcd.tar.bz2 rneovim-c10fe010f1655b1c02c0fa38ea3d969b86a72bcd.zip |
Prevent endless loop in printdigraph(). (#5215)
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.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
0 files changed, 0 insertions, 0 deletions