mirror of
https://github.com/neovim/neovim.git
synced 2026-07-29 20:08:03 +00:00
fix(messages): unwanted ext_messages newlines for confirm() #38045
Problem: Newlines emitted with ext_messages intended to position
the message/prompt on the message grid.
Solution: Don't emit these newlines with ext_messages, followup to 4260f73e.
This commit is contained in:
@@ -3779,7 +3779,7 @@ static char *console_dialog_alloc(const char *message, const char *buttons, bool
|
||||
|
||||
// Now allocate space for the strings
|
||||
confirm_msg = xmalloc((size_t)msg_len);
|
||||
snprintf(confirm_msg, (size_t)msg_len, "\n%s\n", message);
|
||||
snprintf(confirm_msg, (size_t)msg_len, ui_has(kUIMessages) ? "%s" : "\n%s\n", message);
|
||||
|
||||
xfree(confirm_buttons);
|
||||
confirm_buttons = xmalloc((size_t)button_len);
|
||||
|
||||
Reference in New Issue
Block a user