Skip to content

Commit

Permalink
Fix #116. Switch from setText to setTextViaDiff, preserve folds
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed May 28, 2017
1 parent 015d783 commit c8a8f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ beautify = ({ editor, onSave, language }) ->
else

# console.log "setText"
editor.setText text
editor.getBuffer().setTextViaDiff(text)

# console.log "setCursors"
setCursors editor, posArray
Expand Down

0 comments on commit c8a8f7b

Please sign in to comment.