From: Eric S. Raymond Date: Wed, 28 May 2014 18:55:34 +0000 (-0400) Subject: Make it a bit more obvious when entering ior exiting edit mode. X-Git-Tag: 1.13~5 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=07c0539e7ffbeab8412e4a5c4740108637f28aea;p=vms-empire.git Make it a bit more obvious when entering ior exiting edit mode. --- 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."); } /*