     if opts.class?
       @editorContainer.addClass opts.class
 
-    if opts.hidden?
+    if opts.hidden
       @editorContainer.addClass 'hidden-input'
 
-    if opts.singleChar?
-      @singleChar = true
+    @singleChar = opts.singleChar
 
     @defaultText = opts.defaultText ? ''
 

    statusBar = atom.workspaceView.find('.status-bar')

    if statusBar.length > 0
      @.insertBefore(statusBar)
    else
      atom.workspace.getActivePane().append(@)


{View, EditorView} = require 'atom'

module.exports =
class VimCommandModeInputView extends View
  @content: ->
    @div class: 'command-mode-input', =>
