fix #387 - Partial terminal feed merged with auto cd command

This commit is contained in:
Basile Burg 2018-12-19 16:05:41 +01:00
parent ed8853ccc2
commit 2dd21f049f
1 changed files with 9 additions and 0 deletions

View File

@ -253,6 +253,9 @@ begin
not SameText(directory, fLastCd) then
begin
fLastCd := directory;
fTerm.Restart;
fNeedApplyChanges := true;
fOpts.applyChanges;
fTerm.Command('cd ' + directory);
end;
end;
@ -269,6 +272,9 @@ begin
if fOpts.followEditors and s.fileExists and not SameText(s, fLastCd) then
begin
fLastCd := s;
fTerm.Restart;
fNeedApplyChanges := true;
fOpts.applyChanges;
fTerm.Command('cd ' + s);
end;
end;
@ -301,6 +307,9 @@ begin
if fOpts.followProjects and s.dirExists and not SameText(s, fLastCd) then
begin
fLastCd := s;
fTerm.Restart;
fNeedApplyChanges := true;
fOpts.applyChanges;
fTerm.Command('cd ' + s);
end;
end;