aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-18 10:34:27 +0800
committerGitHub <noreply@github.com>2024-03-18 10:34:27 +0800
commiteabf9de1dc8c8eeb8246491a0e389b5f9a5fde97 (patch)
tree8d09ddd851521f06dafe73ab8e2d7273786ed274 /src
parent3b29b39e6deb212456eba691bc79b17edaa8717b (diff)
downloadrneovim-eabf9de1dc8c8eeb8246491a0e389b5f9a5fde97.tar.gz
rneovim-eabf9de1dc8c8eeb8246491a0e389b5f9a5fde97.tar.bz2
rneovim-eabf9de1dc8c8eeb8246491a0e389b5f9a5fde97.zip
fix(messages): allow more prompt in headless mode with UI (#27905)
Problem: More prompt is not shown in headless mode even if there is a UI attached. Solution: Don't skip more prompt when there is a UI active.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 175e3b5d03..0f1afee4a1 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -2713,7 +2713,7 @@ static bool do_more_prompt(int typed_char)
// If headless mode is enabled and no input is required, this variable
// will be true. However If server mode is enabled, the message "--more--"
// should be displayed.
- bool no_need_more = headless_mode && !embedded_mode;
+ bool no_need_more = headless_mode && !embedded_mode && !ui_active();
// We get called recursively when a timer callback outputs a message. In
// that case don't show another prompt. Also when at the hit-Enter prompt