aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-09-11 06:53:11 +0100
committerStephen Blott2015-09-11 07:11:49 +0100
commit4976850e975b98e20505d9a92bde4982608a18e2 (patch)
tree069e1200c48c4534d907f54846275b3b3767a26a /background_scripts/completion.coffee
parent00c1f4616c55d1156342ebae840b4c6833f9a8a2 (diff)
downloadvimium-4976850e975b98e20505d9a92bde4982608a18e2.tar.bz2
Make the sort used for filetered link hints stable.
JavaScript's sort function is not stable; this PR makes the sort used for filtered link hints stable. There are two reasons for doing this: - High-scoring hints are more likely to keep the same hint string as the user continues typing. (Currently, the hints assigned change based on the vaguaries of the non-stable sort.) - For equal-scoring hints, we retain the visit-child-before-parent ordering (which is used to NOT match a parent's text if we have already matched that text in a child). And, as a result of all of that, the UX is more predictable and hence better.
Diffstat (limited to 'background_scripts/completion.coffee')
0 files changed, 0 insertions, 0 deletions