Commit 74b5067
Raphael Hunziker
Store 20 bind phrases and scroll the history list
The history was capped at 5 entries, and the cap was on the stored data
rather than the display: adding a sixth phrase silently dropped the
oldest one from history.txt. Anyone managing a larger fleet loses
phrases that are still in use and has to retype them.
Show the history through a scrolling window of History.PAGE (5) rows so
the on-screen footprint no longer depends on how much is stored, which
is what forced the low cap in the first place. With that decoupled,
raise the stored limit to 20. Up/Down buttons move the window a page at
a time and are only shown when the history is longer than one page. A
label shows the current position.1 parent ecc2052 commit 74b5067
1 file changed
Lines changed: 72 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| |||
276 | 283 | | |
277 | 284 | | |
278 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
279 | 301 | | |
280 | | - | |
| 302 | + | |
281 | 303 | | |
282 | 304 | | |
283 | 305 | | |
284 | 306 | | |
285 | 307 | | |
286 | | - | |
| 308 | + | |
287 | 309 | | |
288 | 310 | | |
289 | 311 | | |
290 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
291 | 325 | | |
292 | 326 | | |
293 | 327 | | |
| |||
425 | 459 | | |
426 | 460 | | |
427 | 461 | | |
428 | | - | |
| 462 | + | |
429 | 463 | | |
430 | 464 | | |
431 | 465 | | |
| |||
453 | 487 | | |
454 | 488 | | |
455 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
456 | 523 | | |
457 | 524 | | |
458 | 525 | | |
| |||
0 commit comments