mirror of
https://github.com/atom/atom.git
synced 2026-02-17 01:51:54 -05:00
Destroy folds corresponding to fold-markers and not the whole buffer row
This commit is contained in:
@@ -560,8 +560,8 @@ class TextEditorComponent
|
||||
screenPosition = @screenPositionForMouseEvent(event)
|
||||
|
||||
if event.target?.classList.contains('fold-marker')
|
||||
bufferRow = @editor.bufferRowForScreenRow(screenPosition.row)
|
||||
@editor.unfoldBufferRow(bufferRow)
|
||||
bufferPosition = @editor.bufferPositionForScreenPosition(screenPosition)
|
||||
@editor.destroyFoldsIntersectingBufferRange([bufferPosition, bufferPosition])
|
||||
return
|
||||
|
||||
switch detail
|
||||
|
||||
Reference in New Issue
Block a user