vim-patch:8.2.1520: Vim9: CTRL-] used in :def function does not work (#28880)

Problem:    Vim9: CTRL-] used in :def function does not work.
Solution:   Omit count or prepend colon. (closes vim/vim#6769)

b3ea36c5bc

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2024-05-21 07:45:59 +08:00 committed by GitHub
parent 666911be91
commit b7782daace
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}
}