Skip to content

Commit ca29ffa

Browse files
committed
SDL: fix incorrect file load with ALT+1-9 command
1 parent 3b67066 commit ca29ffa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2018-08-08 (0.12.13)
2+
SDL: fix incorrect file loading with ALT+1-9 command
3+
14
2018-08-08 (0.12.13)
25
COMMON: fix problem with SEQ command
36

src/platform/sdl/editor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,8 @@ void System::editSource(String loadPath) {
412412
if (getRecentFile(recentFile, event.key - SB_KEY_ALT('1'))) {
413413
if (loadSource(recentFile.c_str())) {
414414
editWidget->reload(_programSrc);
415-
statusMessage.setFilename(loadPath);
415+
statusMessage.setFilename(recentFile);
416+
statusMessage.update(editWidget, _output, true);
416417
setLoadPath(recentFile);
417418
setWindowTitle(statusMessage._fileName);
418419
loadPath = recentFile;

0 commit comments

Comments
 (0)