mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(messages): "list_cmd" kind for mark commands #33874
Problem: `:marks/jumps/changes` are missing a message kind. Solution: Assign the "list_cmd" kind to them.
This commit is contained in:
@@ -883,6 +883,7 @@ void ex_marks(exarg_T *eap)
|
|||||||
arg = NULL;
|
arg = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msg_ext_set_kind("list_cmd");
|
||||||
show_one_mark('\'', arg, &curwin->w_pcmark, NULL, true);
|
show_one_mark('\'', arg, &curwin->w_pcmark, NULL, true);
|
||||||
for (int i = 0; i < NMARKS; i++) {
|
for (int i = 0; i < NMARKS; i++) {
|
||||||
show_one_mark(i + 'a', arg, &curbuf->b_namedm[i].mark, NULL, true);
|
show_one_mark(i + 'a', arg, &curbuf->b_namedm[i].mark, NULL, true);
|
||||||
@@ -1056,6 +1057,7 @@ void ex_jumps(exarg_T *eap)
|
|||||||
{
|
{
|
||||||
cleanup_jumplist(curwin, true);
|
cleanup_jumplist(curwin, true);
|
||||||
// Highlight title
|
// Highlight title
|
||||||
|
msg_ext_set_kind("list_cmd");
|
||||||
msg_puts_title(_("\n jump line col file/text"));
|
msg_puts_title(_("\n jump line col file/text"));
|
||||||
for (int i = 0; i < curwin->w_jumplistlen && !got_int; i++) {
|
for (int i = 0; i < curwin->w_jumplistlen && !got_int; i++) {
|
||||||
if (curwin->w_jumplist[i].fmark.mark.lnum != 0) {
|
if (curwin->w_jumplist[i].fmark.mark.lnum != 0) {
|
||||||
@@ -1102,6 +1104,7 @@ void ex_clearjumps(exarg_T *eap)
|
|||||||
// print the changelist
|
// print the changelist
|
||||||
void ex_changes(exarg_T *eap)
|
void ex_changes(exarg_T *eap)
|
||||||
{
|
{
|
||||||
|
msg_ext_set_kind("list_cmd");
|
||||||
// Highlight title
|
// Highlight title
|
||||||
msg_puts_title(_("\nchange line col text"));
|
msg_puts_title(_("\nchange line col text"));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user