diff --git a/ime.js b/ime.js index 95325e8..49fe325 100644 --- a/ime.js +++ b/ime.js @@ -96,11 +96,11 @@ class HeonianIME { if (this.currentWord.join() != "") { //blame js :) this.input.push(this.currentWord); this.currentWord = []; - if (space == true) { - this.currentWord = [" "]; - this.input.push(this.currentWord); - this.currentWord = []; - } + } + if (space == true) { + this.currentWord = [" "]; + this.input.push(this.currentWord); + this.currentWord = []; } this.imeReset(); } else {