Skip to content

Commit

Permalink
prevent storing duplicate entries in command history
Browse files Browse the repository at this point in the history
  • Loading branch information
jwt27 committed Feb 2, 2020
1 parent 8d29b89 commit ec19794
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DEBUG.ASM
Original file line number Diff line number Diff line change
Expand Up @@ -8465,6 +8465,10 @@ first:
initialized:
add di,sizeof llnode
push cx
repe cmpsb ;check if last entry is identical
pop cx
je fail ;don't store duplicates
push cx
mov cx,offset line_history + LINE_HISTORY_LEN
sub cx,di
mov al,CR
Expand Down

0 comments on commit ec19794

Please sign in to comment.