commit 925a1a11f9dce6cea934dd1c1c43ac3024d30d53
parent 5918ca6cab8f44f235b2bb4fb488b2d55ccf7dae
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 17 Nov 2020 19:03:29 +0100
feedback: abort when user tries to open multiple files in tiny version
This fixes https://savannah.gnu.org/bugs/?56227.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -2519,6 +2519,9 @@ int main(int argc, char **argv)
if (ISSET(VIEW_MODE))
SET(MULTIBUFFER);
}
+#else
+ if (optind < argc)
+ die(_("Can open just one file\n"));
#endif
prepare_for_display();