summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 78b61228aa..e3db0b2a91 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1013,6 +1013,15 @@ common_init(mparm_T *paramp)
}
/*
+ * Return TRUE when the --not-a-term argument was found.
+ */
+ int
+is_not_a_term()
+{
+ return params.not_a_term;
+}
+
+/*
* Main loop: Execute Normal mode commands until exiting Vim.
* Also used to handle commands in the command-line window, until the window
* is closed.