summaryrefslogtreecommitdiffstats
path: root/linenoise/linenoise.c
diff options
context:
space:
mode:
Diffstat (limited to 'linenoise/linenoise.c')
-rw-r--r--linenoise/linenoise.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c
index a8ed8ba1..cc291d38 100644
--- a/linenoise/linenoise.c
+++ b/linenoise/linenoise.c
@@ -128,6 +128,10 @@ void lino_set_multiline(lino_t *ls, int ml) {
ls->mlmode = ml;
}
+int lino_get_multiline(lino_t *ls) {
+ return ls->mlmode;
+}
+
static void atexit_handler(void);
/* Raw mode: 1960 magic shit. */