Browse Source

reset index when resetting autocomplete array

Andrew Dolgov 1 year ago
parent
commit
25d5b834f7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      js/tt-irc.js

+ 1 - 0
js/tt-irc.js

@@ -2601,6 +2601,7 @@ function update_emoticon_popup(str) {
 	var query = tmp[tmp.length-1];
 
 	input_autocomplete = [];
+	input_autocomplete_index = 0;
 
 	if (query && query.length > 2 && query[0] == ":") {
 		//$(".emoticons-popup").html(word).show();