Skip to content
Snippets Groups Projects
  1. Apr 27, 2018
  2. Apr 26, 2018
  3. Apr 25, 2018
  4. Apr 24, 2018
  5. Apr 20, 2018
  6. Apr 15, 2018
  7. Apr 13, 2018
  8. Apr 12, 2018
  9. Apr 11, 2018
  10. Apr 04, 2018
  11. Apr 03, 2018
  12. Mar 29, 2018
  13. Mar 24, 2018
  14. Mar 22, 2018
  15. Mar 21, 2018
    • Raymond Hill's avatar
      [merge addon] Fix edge case arising when diff'ing empty strings · f56b0d2d
      Raymond Hill authored
      The merge view will incorrectly show a "Revert chunk" arrow when
      the text on both sides of the view are the empty string.
      
      The getChunks() helper is not prepared to deal with an empty diff
      array.
      
      The getDiff() helper returns an empty diff array when both strings
      to compare are empty, as the only diff item returned by
      diff_match_patch, `[0, ""]`, is removed as a result of the diff
      entry containing an empty string.
      
      The chosen (trivial) fix is to simply check for the empty diff
      array case at the top of getChunks().
      f56b0d2d
  16. Mar 20, 2018
Loading