mirror of
https://github.com/atom/atom.git
synced 2026-02-07 05:05:02 -05:00
If selection is empty when toggling a line comment, keep it empty
This commit is contained in:
@@ -248,7 +248,6 @@ class Renderer
|
||||
@lineMap.logLines(start, end)
|
||||
|
||||
toggleLineCommentsInRange: (range) ->
|
||||
console.log range.inspect()
|
||||
@lineCommenter.toggleLineCommentsInRange(range)
|
||||
|
||||
_.extend Renderer.prototype, EventEmitter
|
||||
|
||||
@@ -20,6 +20,7 @@ class Selection extends View
|
||||
handleBufferChange: (e) ->
|
||||
return unless @anchor
|
||||
@anchor.handleBufferChange(e)
|
||||
@updateAppearance()
|
||||
|
||||
placeAnchor: ->
|
||||
return if @anchor
|
||||
|
||||
Reference in New Issue
Block a user