This repository was archived by the owner on Dec 14, 2024. It is now read-only.
File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
Change Log
3
3
==========================
4
4
5
+ 2.11.0
6
+ --------------------------
7
+
8
+ - Ignore piped text if a file to open is specified.
9
+
10
+
5
11
2.10.0
6
12
--------------------------
7
13
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ The command-line helper tool for [CotEditor](https://coteditor.com).
9
9
10
10
License
11
11
-----------------------------
12
- © 2015-2023 1024jp.
12
+ © 2015-2024 1024jp.
13
13
14
14
The source code is distributed under the terms of the __ Apache License, Version 2.0__ . See the [ LICENSE] ( LICENSE ) for details.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Created by 1024jp on 2015-08-12.
9
9
10
10
------------------------------------------------------------------------------
11
11
12
- © 2015-2023 1024jp
12
+ © 2015-2024 1024jp
13
13
14
14
Licensed under the Apache License, Version 2.0 (the "License");
15
15
you may not use this file except in compliance with the License.
@@ -377,7 +377,7 @@ if __name__ == "__main__":
377
377
args = parse_args ()
378
378
379
379
# read piped text if exists
380
- if sys .stdin .isatty ():
380
+ if args . files or sys .stdin .isatty ():
381
381
stdin = None
382
382
else :
383
383
stdin = '' .join (sys .stdin )
You can’t perform that action at this time.
0 commit comments