Skip to content

Commit

Permalink
Prevent caching empty program names
Browse files Browse the repository at this point in the history
  • Loading branch information
calc84maniac authored and adriweb committed Sep 5, 2024
1 parent 8be9bbf commit bb4ceff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gui/qt/basicdebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ MainWindow::debug_basic_status_t MainWindow::debugBasicPrgmLookup(bool allowSwit
if (!m_basicShowTempParser) {
return DBG_BASIC_NO_EXECUTING_PRGM;
}
} else if (name[1] == '\0') {
// empty name happens during Input for some reason
return DBG_BASIC_NO_EXECUTING_PRGM;
} else {
// lookup in map to see if we've already parsed this file
auto basicPrgmIter = m_basicPrgmsMap.constFind(var_name);
Expand Down

0 comments on commit bb4ceff

Please sign in to comment.