fix(messages): :map output with ext_messages (#26126)

This commit is contained in:
Bara C. Tudor
2023-11-22 03:50:28 +02:00
committed by GitHub
parent 7663584708
commit 91ef26dece
2 changed files with 16 additions and 1 deletions

View File

@@ -45,6 +45,7 @@
#include "nvim/search.h"
#include "nvim/strings.h"
#include "nvim/types.h"
#include "nvim/ui.h"
#include "nvim/vim.h"
/// List used for abbreviations.
@@ -220,7 +221,8 @@ static void showmap(mapblock_T *mp, bool local)
return;
}
if (msg_didout || msg_silent != 0) {
// When ext_messages is active, msg_didout is never set.
if (msg_didout || msg_silent != 0 || ui_has(kUIMessages)) {
msg_putchar('\n');
if (got_int) { // 'q' typed at MORE prompt
return;