Destroy folds corresponding to fold-markers and not the whole buffer row

This commit is contained in:
Antonio Scandurra
2016-04-26 10:47:42 +02:00
parent 00ebe6bbbc
commit ebfd821237
2 changed files with 53 additions and 13 deletions

View File

@@ -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