Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Feb 20, 2024
1 parent f829f68 commit 0239a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cat_win/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ def main():
conin_handle = ctypes.windll.kernel32.CreateFileW(
"CONIN$", 0x80000000, 3, None, 3, 0, None
) # os.dup2 does not work on pyinstaller
ctypes.windll.kernel32.SetStdHandle(-10, conin_handle)
ctypes.windll.kernel32.SetStdHandle(-10, conin_handle) # -10 = stdin
for file in known_files:
Editor.open(file, holder.get_file_display_name(file), arg_parser.file_encoding,
stdinhelper.write_file, on_windows_os, holder.args_id[ARGS_PLAIN_ONLY])
Expand Down

0 comments on commit 0239a98

Please sign in to comment.