File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -496,7 +496,6 @@ def blindThread():
496496 dataToStdout (filterControlChars (commonValue [index - 1 :]))
497497
498498 finalValue = commonValue
499-
500499 break
501500
502501 # If there is a common pattern starting with partialValue,
@@ -529,7 +528,7 @@ def blindThread():
529528 else :
530529 val = getChar (index , asciiTbl )
531530
532- if val is None or ( lastChar > 0 and index > lastChar ) :
531+ if val is None :
533532 finalValue = partialValue
534533 break
535534
@@ -548,6 +547,12 @@ def blindThread():
548547 finalValue = partialValue [:- INFERENCE_BLANK_BREAK ]
549548 break
550549
550+ if (lastChar > 0 and index >= lastChar ):
551+ finalValue = "" if length == 0 else partialValue
552+ finalValue = finalValue .rstrip () if len (finalValue ) > 1 else finalValue
553+ partialValue = None
554+ break
555+
551556 except KeyboardInterrupt :
552557 abortedFlag = True
553558 finally :
You can’t perform that action at this time.
0 commit comments