diff options
author | oni-link <knil.ino@gmail.com> | 2016-01-21 16:42:27 +0100 |
---|---|---|
committer | oni-link <knil.ino@gmail.com> | 2016-01-21 16:52:50 +0100 |
commit | dd0b358af5b3f99f861c99f4ba2d0c9ad16aafb1 (patch) | |
tree | aed63104a6a816f774dc025bf95fe5fa0faac22a /src | |
parent | a649299e76cb1a30cb3388a4bf1fe0410022374d (diff) | |
download | rneovim-dd0b358af5b3f99f861c99f4ba2d0c9ad16aafb1.tar.gz rneovim-dd0b358af5b3f99f861c99f4ba2d0c9ad16aafb1.tar.bz2 rneovim-dd0b358af5b3f99f861c99f4ba2d0c9ad16aafb1.zip |
cs_print_tags_priv: Clear first output line to screen end
Using `:cscope find s <cword>` with the cursor on a very short word like
`key` does not output the first line on the screen correctly: Output is
`Cscope tag: keyrd>` instead of
`Cscope tag: key`.
To fix this, clear the screen line after the first line was printed.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/if_cscope.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index 347f214206..64c381cda3 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -1667,6 +1667,7 @@ static void cs_print_tags_priv(char **matches, char **cntxts, size_t bufsize = newsize; // Track available bufsize (void)sprintf(buf, cstag_msg, ptag); MSG_PUTS_ATTR(buf, hl_attr(HLF_T)); + msg_clr_eos(); // restore matches[0] *ptag_end = '\t'; |