1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 09:30:35 +00:00

pressing Backspace while the Archimedean symbol is already deleted does nothing instead of leaving the menu

This commit is contained in:
Zeno Rogue 2018-08-24 21:50:17 +02:00
parent 0abfcb683f
commit 6b8c7f23e7

View File

@ -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);