mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 19:01:27 +00:00
num_items should be decreased even for pending
This commit is contained in:
parent
ff33180f11
commit
85d813eeed
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,6 @@ func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) {
|
|||
}
|
||||
imgd.use_unicode_placeholder = use_unicode_placeholder
|
||||
imgd.passthrough_mode = passthrough_mode
|
||||
num_of_items--
|
||||
if imgd.err != nil {
|
||||
print_error("Failed to process \x1b[31m%s\x1b[39m: %s\r\n", imgd.source_name, imgd.err)
|
||||
} else {
|
||||
|
|
@ -348,6 +347,7 @@ func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) {
|
|||
|
||||
for num_of_items > 0 {
|
||||
imgd := <-output_channel
|
||||
num_of_items--
|
||||
if imgd.input_sequence_number == expecting_input_sequence_number {
|
||||
do_one(imgd)
|
||||
expecting_input_sequence_number++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue