mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
feat(messages): add "prev_cmd" argument to msg_history_show (#34779)
Problem: Unable to tell whether msg_history_show event is emitted for a :messages or g< command. Solution: Add "prev_cmd" argument that is set to true for g<.
This commit is contained in:
@ -172,7 +172,7 @@ void msg_showmode(Array content)
|
||||
FUNC_API_SINCE(6) FUNC_API_REMOTE_ONLY;
|
||||
void msg_ruler(Array content)
|
||||
FUNC_API_SINCE(6) FUNC_API_REMOTE_ONLY;
|
||||
void msg_history_show(Array entries)
|
||||
void msg_history_show(Array entries, Boolean prev_cmd)
|
||||
FUNC_API_SINCE(6) FUNC_API_REMOTE_ONLY;
|
||||
|
||||
// This UI event is currently undocumented.
|
||||
|
@ -1212,7 +1212,7 @@ void ex_messages(exarg_T *eap)
|
||||
}
|
||||
}
|
||||
if (kv_size(entries) > 0) {
|
||||
ui_call_msg_history_show(entries);
|
||||
ui_call_msg_history_show(entries, eap->skip != 0);
|
||||
api_free_array(entries);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user