mirror of https://gitlab.com/basile.b/dexed.git
fix #387 - Partial terminal feed merged with auto cd command
This commit is contained in:
parent
ed8853ccc2
commit
2dd21f049f
|
@ -253,6 +253,9 @@ begin
|
||||||
not SameText(directory, fLastCd) then
|
not SameText(directory, fLastCd) then
|
||||||
begin
|
begin
|
||||||
fLastCd := directory;
|
fLastCd := directory;
|
||||||
|
fTerm.Restart;
|
||||||
|
fNeedApplyChanges := true;
|
||||||
|
fOpts.applyChanges;
|
||||||
fTerm.Command('cd ' + directory);
|
fTerm.Command('cd ' + directory);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -269,6 +272,9 @@ begin
|
||||||
if fOpts.followEditors and s.fileExists and not SameText(s, fLastCd) then
|
if fOpts.followEditors and s.fileExists and not SameText(s, fLastCd) then
|
||||||
begin
|
begin
|
||||||
fLastCd := s;
|
fLastCd := s;
|
||||||
|
fTerm.Restart;
|
||||||
|
fNeedApplyChanges := true;
|
||||||
|
fOpts.applyChanges;
|
||||||
fTerm.Command('cd ' + s);
|
fTerm.Command('cd ' + s);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -301,6 +307,9 @@ begin
|
||||||
if fOpts.followProjects and s.dirExists and not SameText(s, fLastCd) then
|
if fOpts.followProjects and s.dirExists and not SameText(s, fLastCd) then
|
||||||
begin
|
begin
|
||||||
fLastCd := s;
|
fLastCd := s;
|
||||||
|
fTerm.Restart;
|
||||||
|
fNeedApplyChanges := true;
|
||||||
|
fOpts.applyChanges;
|
||||||
fTerm.Command('cd ' + s);
|
fTerm.Command('cd ' + s);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue