commit | 5942029b818dcf6a24efbc15e8f2055a12c25909 | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Mon Mar 01 12:16:07 2010 -0800 |
committer | Shawn O. Pearce <sop@google.com> | Mon Mar 01 12:36:07 2010 -0800 |
tree | 1ee812a8d468b17d8a8264eb7aff2fc6b2632323 | |
parent | 7bfcf9ac59fa4895bf622382b7afc383a41e644f [diff] |
Fix intraline difference off-by-one when LF is added If a region starts or ends with an LF we incorrectly shifted the entire edit right by one character. This meant the LF that was modified didn't get colored, but the first common character after the edit was colored incorrectly. Only try to shift left if the region doesn't start with LF. Change-Id: I46bbfaf69c4e509328a10ab5a67fcc7cf6493abd Signed-off-by: Shawn O. Pearce <sop@google.com>