no further confirmation once editing commences

This commit is contained in:
Kartik K. Agaram 2022-03-03 21:43:22 -08:00
parent dd5bc9e3ac
commit 2b50b7289e
1 changed files with 3 additions and 1 deletions

View File

@ -1320,7 +1320,9 @@ Wgetch(lua_State *L)
return 0;
/* standard menu hotkeys */
if (c == CTRL_X || c == CTRL_U || c == CTRL_P) {
if (c == CTRL_U && editor_view_in_progress(L))
developer_mode(L);
else if (c == CTRL_X || c == CTRL_U || c == CTRL_P) {
/* always confirm; we're going to throw away data past this point */
/* draw a special menu just for this situation */