title: How to make Google Diff Match Patch prefer changes at the end of a string?
body: <p>I am using the <code>diff_main</code> method of Google's DiffMatchPatch library to get diffs which I then use in my app. Consider this case:</p>
  
  <p>Old string:</p>
  
  <pre><code>Tracker.Dependency.prototype.changed = function () {
     for (var id in this._dependentsById)
       this._dependentsById[id]._compute();
  };
  </code></pre>
  
  <p>New string:</p>
  
  <pre><code>Tracker.Dependency.prototype.changed = function () {
    for (var id in this._dependentsById)
      this._dependentsById[id]._compute();
  };
  
  Tracker.autorun = function (f) {
    constructingComputation = true;
    var c = new Tracker.Computation(f);
    return c;
  };
  </code></pre>
  
  <p>The addition diff I get is:</p>
  
  <pre><code>;
  };
  
  Tracker.autorun = function (f) {
    constructingComputation = true;
    var c = new Tracker.Computation(f);
    return c
  </code></pre>
  
  <p>Whereas it would seem that for human consumption a more reasonable diff would be:</p>
  
  <pre><code>Tracker.autorun = function (f) {
    constructingComputation = true;
    var c = new Tracker.Computation(f);
    return c;
  };
  </code></pre>
  
  <p>Is there any way I can make DiffMatchPatch produce the second result rather than the first?</p>
  
  <p>You can see an example here: <a href="https://jsfiddle.net/puje78vL/1/">https://jsfiddle.net/puje78vL/1/</a></p>