diff --git a/js/jquery.mobile.listview.filter.js b/js/jquery.mobile.listview.filter.js index 2d89f5f95b1..4d8d4024a2f 100755 --- a/js/jquery.mobile.listview.filter.js +++ b/js/jquery.mobile.listview.filter.js @@ -44,7 +44,7 @@ $( ":jqmData(role='listview')" ).live( "listviewcreate", function() { // Change val as lastval for next execution $this.jqmData( "lastval" , val ); - change = val.substr( 0 , lastval.length + 1 ).replace( lastval , "" ); + change = val.substr( 0 , lastval.length - 1 ).replace( lastval , "" ); if ( val.length < lastval.length || change.length != ( val.length - lastval.length ) ) {