From 0cec184cd64323e7865ee17ea3e1213f9d02c969 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 16 Apr 2018 22:38:02 +0200 Subject: startup: ignore -X closes #8285 --- src/nvim/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/nvim/main.c b/src/nvim/main.c index ce9feedd16..b7a4caaab1 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -725,9 +725,7 @@ static void init_locale(void) #endif -/* - * Scan the command line arguments. - */ +/// Scan the command line arguments. static void command_line_scan(mparm_T *parmp) { int argc = parmp->argc; @@ -896,8 +894,9 @@ static void command_line_scan(mparm_T *parmp) p_write = FALSE; break; - case 'N': /* "-N" Nocompatible */ - /* No-op */ + case 'N': // "-N" Nocompatible + case 'X': // "-X" Do not connect to X server + // No-op break; case 'n': /* "-n" no swap file */ -- cgit