From 07c0539e7ffbeab8412e4a5c4740108637f28aea Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 28 May 2014 14:55:34 -0400 Subject: [PATCH] Make it a bit more obvious when entering ior exiting edit mode. --- edit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/edit.c b/edit.c index c2e9d8e..9c12da3 100644 --- a/edit.c +++ b/edit.c @@ -35,6 +35,8 @@ edit(loc_t edit_cursor) path_start = -1; /* not building a path yet */ + comment ("Edit mode..."); + for (;;) { /* until user gives command to leave */ display_loc_u (edit_cursor); /* position cursor */ e = e_cursor (&edit_cursor); /* handle cursor movement */ @@ -68,7 +70,7 @@ edit(loc_t edit_cursor) case 'N': /* end move to location */ e_end (&path_start, edit_cursor, path_type); break; - case 'O': /* leave display mode */ + case 'O': /* leave edit mode */ e_leave (); return; case 'P': /* print new sector */ @@ -144,6 +146,7 @@ Leave edit mode. void e_leave(void) { + comment ("Exiting edit mode."); } /* -- 2.43.0