#------------------------------------------------------------ #revno: 112739 #committer: Pete Beardmore #branch nick: bzr #timestamp: Thu 2013-05-30 13:31:52 +0100 #message: # comint: fix ignore-dupe functionality === modified file 'lisp/comint.el' --- lisp/comint.el 2013-05-30 12:29:26 +0000 +++ lisp/comint.el 2013-05-30 12:31:52 +0000 @@ -962,7 +962,7 @@ (not (string-match ignore history))) (or (null ignoredups) (ring-empty-p ring) - (not (string-equal (ring-ref ring 0) + (not (string-equal (ring-ref ring (1- count)) history)))) (when (= count ring-size) (ring-extend ring (min (- ring-size-max ring-size) ring-size))