mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Merge pull request #13098 from atom/b3-toggle-line-comments
Fix toggleLineCommentsInSelection for empty lines
This commit is contained in:
@@ -27,7 +27,7 @@ class LanguageMode
|
||||
toggleLineCommentsForBufferRows: (start, end) ->
|
||||
scope = @editor.scopeDescriptorForBufferPosition([start, 0])
|
||||
commentStrings = @editor.getCommentStrings(scope)
|
||||
return unless commentStrings?
|
||||
return unless commentStrings?.commentStartString
|
||||
{commentStartString, commentEndString} = commentStrings
|
||||
|
||||
buffer = @editor.buffer
|
||||
|
||||
Reference in New Issue
Block a user