mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Don't highlight gutter lines when there's a multi-column selection
This commit is contained in:
@@ -1657,12 +1657,11 @@ describe "Editor", ->
|
||||
beforeEach ->
|
||||
editor.attachToDom(30)
|
||||
|
||||
it "doesn't highlight the backround", ->
|
||||
it "doesn't highlight the background or the gutter", ->
|
||||
editor.getSelection().setBufferRange(new Range([0,0],[2,0]))
|
||||
expect(editor.getSelection().isSingleScreenLine()).toBe false
|
||||
expect(editor.find('.line-number.cursor-line-number').length).toBe 1
|
||||
expect(editor.find('.line-number.cursor-line-number').length).toBe 0
|
||||
expect(editor.find('.line-number.cursor-line-number.cursor-line-number-background').length).toBe 0
|
||||
expect(editor.find('.line-number.cursor-line-number').text()).toBe "3"
|
||||
|
||||
it "when a newline is deleted with backspace, the line number of the new cursor position is highlighted", ->
|
||||
editor.setCursorScreenPosition([1,0])
|
||||
|
||||
Reference in New Issue
Block a user