Skip to content

Commit

Permalink
Merge pull request prose#1025 from prose/1023-difflines
Browse files Browse the repository at this point in the history
Diff on lines, rather than words
  • Loading branch information
dereklieu authored Apr 24, 2017
2 parents 0f18425 + 463d2a3 commit 140508b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ module.exports = Backbone.View.extend({
var text1 = this.model.isNew() ? '' : _.escape(this.model.get('previous'));
var text2 = _.escape(this.model.serialize());

var d = diff.diffWords(text1, text2);
var d = diff.diffLines(text1, text2);
var length = d.length;
var compare = '';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"chrono": "~1.0.4",
"codemirror": "^5.13.2",
"deepmerge": "~0.2.7",
"diff": "~1.0.4",
"diff": "~2.2.0",
"handsontable": "git://github.com/handsontable/handsontable.git#0.20.2",
"ignore": "~2.2.7",
"jquery-browserify": "~1.8.1",
Expand Down

0 comments on commit 140508b

Please sign in to comment.