This commit is contained in:
Corey Johnson
2012-09-25 17:24:23 -07:00
4 changed files with 14 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ class RootView extends View
false
else
@setTitle(@project?.getPath())
focusableChild = this.find("[tabindex=-1]:visible")
focusableChild = this.find("[tabindex=-1]:visible:first")
if focusableChild.length
focusableChild.focus()
false

View File

@@ -41,7 +41,7 @@ class TextMateBundle
@lineCommentStringForScope: (scope) ->
shellVariables = @getPreferenceInScope(scope, 'shellVariables')
lineComment = (_.find shellVariables, ({name}) -> name == "TM_COMMENT_START")['value']
(_.find shellVariables, ({name}) -> name == "TM_COMMENT_START")?['value']
@indentRegexForScope: (scope) ->
if source = @getPreferenceInScope(scope, 'increaseIndentPattern')