mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Move config stuff out of the autoflow
This commit is contained in:
@@ -7,10 +7,10 @@ module.exports =
|
||||
|
||||
reflowParagraph: (editor) ->
|
||||
if range = editor.getCurrentParagraphBufferRange()
|
||||
editor.getBuffer().change(range, @reflow(editor.getTextInRange(range)))
|
||||
wrapColumn = config.getPositiveInt('editor.preferredLineLength', 80)
|
||||
editor.getBuffer().change(range, @reflow(editor.getTextInRange(range), {wrapColumn}))
|
||||
|
||||
reflow: (text) ->
|
||||
wrapColumn = config.getPositiveInt('editor.preferredLineLength', 80)
|
||||
reflow: (text, {wrapColumn}) ->
|
||||
lines = []
|
||||
|
||||
currentLine = []
|
||||
|
||||
Reference in New Issue
Block a user