From 6b8c7f23e721202bfc33cfef4ccaeaa2a52ba922 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 24 Aug 2018 21:50:17 +0200 Subject: [PATCH] pressing Backspace while the Archimedean symbol is already deleted does nothing instead of leaving the menu --- archimedean.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archimedean.cpp b/archimedean.cpp index 6cb2ef70..74d58bc3 100644 --- a/archimedean.cpp +++ b/archimedean.cpp @@ -1098,7 +1098,8 @@ void show() { if(sym == SDLK_LEFT) editpos--; if(sym == SDLK_RIGHT) editpos++; dialog::handleNavigation(sym, uni); - if(symbol_editing && uni == 8 && editpos > 0) { + if(symbol_editing && uni == 8) { + if(editpos == 0) return; edited.symbol.replace(editpos-1, 1, ""); editpos--; edited.parse(edited.symbol);