commit | 9c68b29c22a95270879f1552dec4182e8e118411 | [log] [tgz] |
---|---|---|
author | Keisuke Kuroyanagi <ksk@google.com> | Fri Apr 24 18:55:56 2015 +0900 |
committer | Keisuke Kuroyanagi <ksk@google.com> | Tue Apr 28 20:46:08 2015 +0900 |
tree | 6d5845415feac6ccfa18d92cea9e65d5891b7c6f | |
parent | e48cca2a20668951254e980ac9284cd3492280ba [diff] |
Fix: A part of grapheme cluster can be selected. Previously, when a selection handle is about to pass the other handle, the offset of the handle was computed with +1 or -1 to the offset, without considering UTF-16 surrogate pairs or grapheme clusters. This patch consistently uses grapheme clusters to compute the new offset in such cases. Bug: 20112392 Change-Id: I2b5e206d20886ca7ceb9f4375ee0d66f2328f99d