Don't set the ':' prompt font in command panel because it looks bad afterward

This commit is contained in:
Nathan Sobo
2012-07-17 16:54:29 -06:00
parent d8189a6fc4
commit 0bc9973d9f
2 changed files with 0 additions and 4 deletions

View File

@@ -34,11 +34,8 @@ describe "CommandPanel", ->
expect(commandPanel.miniEditor.isFocused).toBeFalsy()
rootView.trigger 'command-panel:toggle'
window.advanceClock() # Setting the font is in a defer statement
expect(rootView.find('.command-panel').view()).toBe commandPanel
expect(commandPanel.miniEditor.isFocused).toBeTruthy()
# this is currently assigned dynamically since our css scheme lacks variables
expect(commandPanel.prompt.css('font')).toBe commandPanel.miniEditor.css('font')
commandPanel.miniEditor.insertText 's/war/peace/g'
rootView.trigger 'command-panel:toggle'

View File

@@ -56,7 +56,6 @@ class CommandPanel extends View
@rootView.append(this)
@miniEditor.focus()
@miniEditor.setText(text)
@prompt.css 'font', @miniEditor.css('font')
detach: ->
@rootView.focus()