diff --git a/src/js/views/commandViews.js b/src/js/views/commandViews.js index fa2da865..b6ee38db 100644 --- a/src/js/views/commandViews.js +++ b/src/js/views/commandViews.js @@ -88,7 +88,9 @@ var CommandPromptView = Backbone.View.extend({ if (e.keyCode === 9) { e.preventDefault(); - el.value = shadowEl.innerHTML.replace(/ /g, ' '); + if (shadowEl.innerHTML) { + el.value = shadowEl.innerHTML.replace(/ /g, ' '); + } } this.updatePrompt(el);