diff --git a/src/nano.c b/src/nano.c index a4f051c0..53326d2a 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2166,6 +2166,9 @@ int main(int argc, char **argv) free(alt_speller); alt_speller = alt_speller_cmdline; } + /* Strip leading whitespace from the speller command, if any. */ + while (alt_speller && *alt_speller && isblank(*alt_speller)) + alt_speller++; #endif /* If an rcfile undid the default settings, copy it to the new flags. */