mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix unwanted pipe release (Fix #760)
# Conflicts: # CHANGELOG.md # CotEditor/Sources/UnixScript.swift
This commit is contained in:
parent
d763b60fa6
commit
a735768d1a
@ -2,6 +2,15 @@
|
||||
Change Log
|
||||
==========================
|
||||
|
||||
3.2.8
|
||||
--------------------------
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix an issue where CotEditor occasionally failed sending the standard input to a UNIX script launched from the Script menu.
|
||||
|
||||
|
||||
|
||||
3.2.7 (212)
|
||||
--------------------------
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
© 2004-2007 nakamuxu
|
||||
© 2014-2017 1024jp
|
||||
© 2014-2018 1024jp
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -442,6 +442,9 @@ final class ShellScript: Script {
|
||||
handle.write(chunk)
|
||||
}
|
||||
handle.closeFile()
|
||||
|
||||
// inPipe must avoid releasing before `writeabilityHandler` is invocated
|
||||
inPipe.fileHandleForWriting.writeabilityHandler = nil
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user