Commit bc0e3d1
Fix dialog corrupts rendering by pushing up input line too much (#524)
* Do not render dialog where it overflows screen
* Dialog rendering should Scroll down only when needed
* Refactor screen_y_range calculation
Co-authored-by: Stan Lo <stan001212@gmail.com>
---------
Co-authored-by: Stan Lo <stan001212@gmail.com>1 parent 6cee9fa commit bc0e3d1
File tree
2 files changed
+25
-5
lines changed- lib/reline
- test/reline/yamatanooroti
2 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
711 | 715 | | |
712 | 716 | | |
713 | | - | |
714 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
715 | 721 | | |
716 | 722 | | |
717 | 723 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
957 | 957 | | |
958 | 958 | | |
959 | 959 | | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
960 | 974 | | |
961 | 975 | | |
962 | 976 | | |
| |||
1360 | 1374 | | |
1361 | 1375 | | |
1362 | 1376 | | |
| 1377 | + | |
1363 | 1378 | | |
1364 | 1379 | | |
1365 | | - | |
1366 | | - | |
| 1380 | + | |
| 1381 | + | |
1367 | 1382 | | |
1368 | | - | |
1369 | 1383 | | |
1370 | 1384 | | |
1371 | 1385 | | |
| |||
0 commit comments