mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
Fix to create_manpage_completions.py to flush after every line (so you see more progress) and to put the cursor at the beginning (so it doesn't jump around)
This commit is contained in:
parent
6681f3bfec
commit
1bead8adf7
1 changed files with 2 additions and 1 deletions
|
@ -753,7 +753,8 @@ def parse_and_output_man_pages(paths, output_directory, show_progress):
|
||||||
# Pad on the right with spaces so we overwrite whatever we wrote last time
|
# Pad on the right with spaces so we overwrite whatever we wrote last time
|
||||||
padded_progress_str = progress_str.ljust(last_progress_string_length)
|
padded_progress_str = progress_str.ljust(last_progress_string_length)
|
||||||
last_progress_string_length = len(progress_str)
|
last_progress_string_length = len(progress_str)
|
||||||
sys.stdout.write("\r\r{0} {1}".format(padded_progress_str, chr(27)))
|
sys.stdout.write("\r{0} {1}\r".format(padded_progress_str, chr(27)))
|
||||||
|
sys.stdout.flush();
|
||||||
try:
|
try:
|
||||||
if parse_manpage_at_path(manpage_path, output_directory):
|
if parse_manpage_at_path(manpage_path, output_directory):
|
||||||
successful_count += 1
|
successful_count += 1
|
||||||
|
|
Loading…
Reference in a new issue