From 1e0e301062f30846f33457ba3a689266213b8378 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 7 Nov 2016 00:17:57 +0100 Subject: 'inccommand': format line numbers as "|123| " This matches what Quickfix traditionally does. --- src/nvim/ex_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit