Commit 59b0e34
refactor: inline
The `page` local in `_handle_fullscreen_key` was computed
unconditionally in the non-exit branch but only consumed by the
space/b action lambdas (page-down / page-up). Inlining
`self._fullscreen_page_size()` into those two lambdas means it's
only evaluated when space or b is actually pressed — j/k/g/G/[/]
now skip the call entirely. Behavior is identical: the dict is
built and a single action is invoked per keypress, and the page
value is read at action-invocation time under the same lock.
Same Phase 4 shape as 134078d / ef176bf / b19625e — narrow the
scope of a local that was only live on one branch.
Co-authored-by: Ralphify <noreply@ralphify.co>_fullscreen_page_size() into space/b lambdas1 parent b2a4e4c commit 59b0e34
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
1445 | 1444 | | |
1446 | 1445 | | |
1447 | 1446 | | |
1448 | | - | |
1449 | | - | |
| 1447 | + | |
| 1448 | + | |
1450 | 1449 | | |
1451 | 1450 | | |
1452 | 1451 | | |
| |||
0 commit comments