Bug 407832

Summary: terminal plugin of kate executes commands without asking when directory sync us enabled
Product: [Applications] kate Reporter: maxmustermann1884
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aspotashev, loh.tar, maxmustermann1884
Priority: NOR    
Version: 19.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=161637
Latest Commit: Version Fixed In:
Attachments: screenshot of terminal output

Description maxmustermann1884 2019-05-22 15:41:23 UTC
Created attachment 120253 [details]
screenshot of terminal output

SUMMARY
(unfinished) commands are executed when terminal auto synchronizes working directory with kate 
STEPS TO REPRODUCE
1.  using kate with the terminal plugin enabled, multiple files from different directories opened and terminal directory sync enabled
2. type a command into the terminal plugin
3. switch to a different file (for example to copy a string) in another directory

OBSERVED RESULT
terminal changes working directory and executes the typed command without warning

EXPECTED RESULT
warning, cut the command before switching and insert it afterwards or atleast cancel the command


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
only tried this with split view, also maybe this is a konsole/terminalplugin bug? dolphin bug 161637 is somewhat related
Comment 1 Lothar 2019-05-23 12:44:04 UTC
Should be fixed already
https://phabricator.kde.org/D20974