diff --git a/app/utils.cpp b/app/utils.cpp index 52afdd5e1..32ce41d99 100644 --- a/app/utils.cpp +++ b/app/utils.cpp @@ -153,6 +153,15 @@ char* get_text() { } // we want to be inside the parenthese if there are some. index -= (tmp > 2) ? 2 : 0; + } else if (event == DELETE) { + // Nothing to delete. + if (index == max) { + continue; + } + for (int i=index; i