From 79d77da8a06bf91a77cc96a1f1fba30bbd991a23 Mon Sep 17 00:00:00 2001 From: Linda_pp Date: Sat, 15 Oct 2016 01:12:10 +0900 Subject: [PATCH] startup: Remove 'N files to edit' message. #5481 Problem: When '--embed' passed to command line arguments, stdin and stdout are used for IPC. But when multiple files are passed as arguments, nvim wrongly sends 'N files to edit' message to its stdout. As the result, attaching to process from frontend failed. Solution: Remove the message because it doesn't fill any purpose. --- src/nvim/main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/nvim/main.c b/src/nvim/main.c index 793babd4e5..eb67483d08 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -270,11 +270,6 @@ int main(int argc, char **argv) setbuf(stdout, NULL); - /* This message comes before term inits, but after setting "silent_mode" - * when the input is not a tty. */ - if (GARGCOUNT > 1 && !silent_mode) - printf(_("%d files to edit\n"), GARGCOUNT); - full_screen = true; check_tty(¶ms);