aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/normal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 02bd3d05c1..9646b83106 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -3451,8 +3451,10 @@ static void nv_ident(cmdarg_T *cap)
} else {
if (g_cmd) {
STRCPY(buf, "tj ");
+ } else if (cap->count0 == 0) {
+ STRCPY(buf, "ta ");
} else {
- snprintf(buf, buf_size, "%" PRId64 "ta ", (int64_t)cap->count0);
+ snprintf(buf, buf_size, ":%" PRId64 "ta ", (int64_t)cap->count0);
}
}
}