bugfix: empty source side effects

This commit is contained in:
Basile Burg 2014-07-06 21:05:37 +02:00
parent 57cac8022c
commit 6c52701a10
1 changed files with 13 additions and 9 deletions

View File

@ -228,6 +228,9 @@ begin
begin
mainForm.docChangeNotify(Self, editorIndex);
if ed.Lines.Count > 0 then
begin
mainForm.MessageWidget.Clear;
lex( ed.Lines.Text, tokLst );
@ -239,6 +242,7 @@ begin
md := getModuleName(tokLst);
if md = '' then md := extractFileName(ed.fileName);
pageControl.ActivePage.Caption := md;
end;
mainForm.MessageWidget.scrollToBack;
tokLst.Clear;