Skip to content

Commit

Permalink
Fixed #1994 Replace command in commandline with three argument causin…
Browse files Browse the repository at this point in the history
…g replacements file load
  • Loading branch information
jindrapetrik committed Apr 5, 2023
1 parent c1cad12 commit a516236
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
### Fixed
- [#1993] Incorrect scroll position causing shapes to be hidden
- [#1994] Replace command in commandline with three argument causing replacements file load

## [18.4.0] - 2023-03-19
### Added
Expand Down Expand Up @@ -3014,6 +3015,7 @@ All notable changes to this project will be documented in this file.
[alpha 8]: https://github.com/jindrapetrik/jpexs-decompiler/compare/alpha7...alpha8
[alpha 7]: https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/alpha7
[#1993]: https://www.free-decompiler.com/flash/issues/1993
[#1994]: https://www.free-decompiler.com/flash/issues/1994
[#1888]: https://www.free-decompiler.com/flash/issues/1888
[#1892]: https://www.free-decompiler.com/flash/issues/1892
[#355]: https://www.free-decompiler.com/flash/issues/355
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3143,7 +3143,7 @@ private static void parseReplace(Stack<String> args, String charset, boolean air
File inFile = new File(args.pop());
File outFile = new File(args.pop());

if (args.size() == 3) {
if (args.size() == 1) {
System.out.println("Replacing - only single argument passed, taking it as file to load replacements from");
try {
List<String> lines = Files.readAllLines(Paths.get(args.pop()), StandardCharsets.UTF_8);
Expand Down

0 comments on commit a516236

Please sign in to comment.