mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
fix: tab to replace command only shadow have value
This commit is contained in:
parent
208d7e3038
commit
1278fe4b03
1 changed files with 3 additions and 1 deletions
|
@ -88,8 +88,10 @@ var CommandPromptView = Backbone.View.extend({
|
|||
|
||||
if (e.keyCode === 9) {
|
||||
e.preventDefault();
|
||||
if (shadowEl.innerHTML) {
|
||||
el.value = shadowEl.innerHTML.replace(/ /g, ' ');
|
||||
}
|
||||
}
|
||||
|
||||
this.updatePrompt(el);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue