aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-06-01 22:22:23 -0600
committernytpu <alex@nytpu.com>2021-06-01 22:22:23 -0600
commit83bd7a88758126cac39693dec3e1be6ee3b5f968 (patch)
tree3eb1ab440747de9624463e45709d8671e2e12f54 /common.h
parentappropriately credit linenoise (diff)
downloaded-83bd7a88758126cac39693dec3e1be6ee3b5f968.tar.bz2
ed-83bd7a88758126cac39693dec3e1be6ee3b5f968.zip
move error() to common.h
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.h b/common.h
index 6f51b18..e041128 100644
--- a/common.h
+++ b/common.h
@@ -63,4 +63,8 @@ void die(const char *m);
void editor_init(void);
void editor_deinit(void);
+// print the standard "?\n", and also print a given msg if verbosity is enabled
+// the msg will be saved for a future "h" command.
+void error(const char *msg);
+
#endif // _COMMON_H