Skip to content

Commit f683887

Browse files
committed
fix(zq): 'esc' choosing 'yes' in 'Really want to quit?' popup
1 parent 2cbfece commit f683887

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zq/zq_misc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -981,16 +981,16 @@ int32_t onExit()
981981
std::string exittxt = fmt::format("Really want to quit?{}",
982982
dialog_open_quit ? "\nAny changes in the current dialog will not be saved!" : "");
983983

984-
int ret = D_CLOSE;
984+
int ret = D_O_K;
985985

986986
AlertFuncDialog("ZQuest",
987987
exittxt,
988988
"",
989989
2, 0, //2 buttons, where buttons[0] is focused
990990
{ "&Yes", "&No" },
991991
{
992-
nullptr,
993-
[&ret](){ret = D_O_K; return true;}
992+
[&ret](){ret = D_CLOSE; return true;},
993+
nullptr
994994
}
995995
).show();
996996

0 commit comments

Comments
 (0)