diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-11-07 00:17:57 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-11-08 21:21:46 +0100 |
commit | 1e0e301062f30846f33457ba3a689266213b8378 (patch) | |
tree | df55e1897729190a48e4eaa88c7c5aa722dac4ea /src | |
parent | 3ccf69c1ded94c0c3cac50d21dc6d55e5f7a8a21 (diff) | |
download | rneovim-1e0e301062f30846f33457ba3a689266213b8378.tar.gz rneovim-1e0e301062f30846f33457ba3a689266213b8378.tar.bz2 rneovim-1e0e301062f30846f33457ba3a689266213b8378.zip |
'inccommand': format line numbers as "|123| "
This matches what Quickfix traditionally does.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index bf78be9f13..3dc190ddbf 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -6084,7 +6084,7 @@ static buf_T *incsub_display(char_u *pat, char_u *sub, } // put " | lnum|line" into str and append it to the incsubstitute buffer - snprintf(str, line_size, " [%*ld]%s", col_width - 3, mat.lnum, mat.line); + snprintf(str, line_size, "|%*ld| %s", col_width - 3, mat.lnum, mat.line); ml_append(line, (char_u *)str, (colnr_T)line_size, false); // highlight the replaced part |