mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Merge pull request #13764 from atom/wl-dont-soft-wrap-minis
Disable soft wrap on mini editors
This commit is contained in:
@@ -5973,7 +5973,7 @@ describe "TextEditor", ->
|
||||
expect(editor.getGrammar().name).toBe 'CoffeeScript'
|
||||
|
||||
describe "softWrapAtPreferredLineLength", ->
|
||||
it "soft wraps the editor at the preferred line length unless the editor is narrower", ->
|
||||
it "soft wraps the editor at the preferred line length unless the editor is narrower or the editor is mini", ->
|
||||
editor.update({
|
||||
editorWidthInChars: 30
|
||||
softWrapped: true
|
||||
@@ -5986,6 +5986,9 @@ describe "TextEditor", ->
|
||||
editor.update({editorWidthInChars: 10})
|
||||
expect(editor.lineTextForScreenRow(0)).toBe 'var '
|
||||
|
||||
editor.update({mini: true})
|
||||
expect(editor.lineTextForScreenRow(0)).toBe 'var quicksort = function () {'
|
||||
|
||||
describe "softWrapHangingIndentLength", ->
|
||||
it "controls how much extra indentation is applied to soft-wrapped lines", ->
|
||||
editor.setText('123456789')
|
||||
|
||||
Reference in New Issue
Block a user