From ebde55ec7e2a0bbf6935180cc186e7a8ba501997 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Thu, 31 Dec 2015 09:59:46 -0200 Subject: [PATCH] Fixed a crash when filename is too long to fit the screen. --- source/ide/ide_methods.bas | 1 + 1 file changed, 1 insertion(+) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 69b953fb4..6108f1b89 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -723,6 +723,7 @@ DO a$ = " " + a$ if LEN(sfname$) > 0 then a$ = a$ + ":" + sfname$ a$ = a$ + " " + if len(a$) > idewx - 5 then a$ = left$(a$, idewx - 11) + string$(3, 250) + " " COLOR 1, 7: LOCATE 2, ((idewx / 2) - 1) - (LEN(a$) - 1) \ 2: PRINT a$; 'update search bar