diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-10-25 20:42:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-25 20:42:04 +0200 |
commit | e828a5a76b097885ebd40d636e9ea95251b2995d (patch) | |
tree | f05ea387861273f79bc8ddec6c9892a503e64f49 /src/nvim/version.c | |
parent | 714ec09c6d83295ef70becbbaf1c620761cbdac6 (diff) | |
parent | e8ddbbdf07838a99545181a5f63d460f4ea7e8a4 (diff) | |
download | rneovim-e828a5a76b097885ebd40d636e9ea95251b2995d.tar.gz rneovim-e828a5a76b097885ebd40d636e9ea95251b2995d.tar.bz2 rneovim-e828a5a76b097885ebd40d636e9ea95251b2995d.zip |
Merge #5530 from justinmk/checkhealth
CheckHealth: more checks. Also hack around an infinite loop.
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r-- | src/nvim/version.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c index 6b9c8bf6b1..54f03cd3dd 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -2570,7 +2570,11 @@ static void list_features(void) } } else { while (msg_col % width) { + int old_msg_col = msg_col; msg_putchar(' '); + if (old_msg_col == msg_col) { + break; // XXX: Avoid infinite loop. + } } } } else { |