summaryrefslogtreecommitdiff
path: root/editmode.c
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-04-20 00:03:57 +0200
committerOskar <[email protected]>2024-04-20 00:03:57 +0200
commite7e9f3077f3dbbe31b22316a47980c417d915b49 (patch)
treedc8e1a713a7804c2c0afc6676a07690c06acad19 /editmode.c
parente0e28a119e7a0f83ef9382413dba603ae342a8fb (diff)
Choicemode switches
Diffstat (limited to 'editmode.c')
-rw-r--r--editmode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/editmode.c b/editmode.c
index 3ed80be..72b1650 100644
--- a/editmode.c
+++ b/editmode.c
@@ -7,6 +7,7 @@
#include <stdint.h>
extern uint8_t new;
+extern uint8_t g_choicemode;
int delete_specified_newline(char filename[], long focus) { // special version of write_line that does as the name says
@@ -273,7 +274,7 @@ int editmode(char filename[], uint64_t focus) { // the editing interface
return 0;
}
- int yesno = choice();
+ int yesno = choice(g_choicemode);
if (yesno == 1) {
return 0;