Skip to content

Commit adcaa2e

Browse files
committed
feat: order mappings by rhs then lhs
1 parent 5ae7a5e commit adcaa2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

denops/fall/util/mapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function formatMappingHelpPage(
4242
const columnCount = Math.floor(width / columnWidth);
4343
const recordWidth = columnWidth - spacer.length;
4444
const records = mappings
45-
.toSorted((a, b) => `${a.lhs}${a.rhs}`.localeCompare(`${b.lhs}${b.rhs}`))
45+
.toSorted((a, b) => `${a.rhs}${a.lhs}`.localeCompare(`${b.rhs}${b.lhs}`))
4646
.map(({ lhs, rhs }) => {
4747
const r = `${lhs.padStart(lhsWidth)}${operator}${rhs}`;
4848
if (r.length < recordWidth) {

0 commit comments

Comments
 (0)