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:
luukvbaal
2025-07-08 11:19:02 +02:00
committed by GitHub
parent f576b59a09
commit f68a5c40f0
7 changed files with 19 additions and 23 deletions

View File

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