From 2dd21f049facc8faff50e61d5c2b389185133cda Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Wed, 19 Dec 2018 16:05:41 +0100 Subject: [PATCH] fix #387 - Partial terminal feed merged with auto cd command --- src/ce_term.pas | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ce_term.pas b/src/ce_term.pas index c0fa983e..071ac0fe 100644 --- a/src/ce_term.pas +++ b/src/ce_term.pas @@ -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;