mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don't raise an exception when folding an empty range
This commit is contained in:
@@ -206,6 +206,9 @@ describe "LineFolder", ->
|
||||
fold.destroy()
|
||||
expect(folder.lineForScreenRow(0).text).toBe 'var quicksort = function () {'
|
||||
|
||||
it "doesn't raise an error when attempting to fold empty ranges", ->
|
||||
folder.createFold(new Range([1, 1], [1, 1]))
|
||||
|
||||
describe "when the buffer changes", ->
|
||||
[fold1, fold2] = []
|
||||
beforeEach ->
|
||||
|
||||
Reference in New Issue
Block a user