Repository navigation
Commit c70022e
committed
Support OSI 16 in hosted terminal to match upstream
Upstream Vim refactored the cell pixel code, and now supports responding
to CSI 16 calls from hosted terminal (see v9.2.1343 / e5d1d16).
Add that support to MacVim too and add a test for that (upstream didn't
add a test for this). Also, use this opportunity to refactor the code so
MacVim has less special case ifdefs. MacVim's handling of this simply
works more similar to terminal Vim than GUI Vim due to the async nature
of MacVim's multi-process GUI. We can just reuse the terminal Vim
codepath instead of having to add special case ifdef everywhere, and use
update_cell_size() to do most of the work by updating a centralized
location whenever we receive a new size from the GUI frontend.1 parent 6480ad9 commit c70022e
7 files changed
Lines changed: 51 additions & 31 deletions
File tree
- src
- MacVim
- testdir
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1309 | 1309 | | |
1310 | 1310 | | |
1311 | 1311 | | |
1312 | | - | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1313 | 1317 | | |
1314 | 1318 | | |
1315 | 1319 | | |
| |||
2773 | 2777 | | |
2774 | 2778 | | |
2775 | 2779 | | |
2776 | | - | |
2777 | | - | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
2778 | 2784 | | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
2779 | 2788 | | |
2780 | 2789 | | |
2781 | 2790 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6307 | 6307 | | |
6308 | 6308 | | |
6309 | 6309 | | |
6310 | | - | |
| 6310 | + | |
| 6311 | + | |
6311 | 6312 | | |
6312 | 6313 | | |
6313 | 6314 | | |
6314 | | - | |
6315 | | - | |
6316 | | - | |
6317 | | - | |
6318 | | - | |
6319 | | - | |
6320 | 6315 | | |
6321 | 6316 | | |
6322 | | - | |
6323 | 6317 | | |
6324 | 6318 | | |
6325 | 6319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4475 | 4475 | | |
4476 | 4476 | | |
4477 | 4477 | | |
4478 | | - | |
4479 | | - | |
4480 | | - | |
4481 | | - | |
4482 | | - | |
4483 | | - | |
4484 | | - | |
4485 | | - | |
4486 | | - | |
4487 | | - | |
4488 | | - | |
4489 | | - | |
4490 | | - | |
4491 | | - | |
4492 | 4478 | | |
4493 | 4479 | | |
4494 | 4480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3788 | 3788 | | |
3789 | 3789 | | |
3790 | 3790 | | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
3791 | 3802 | | |
| 3803 | + | |
| 3804 | + | |
3792 | 3805 | | |
3793 | 3806 | | |
3794 | 3807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5104 | 5104 | | |
5105 | 5105 | | |
5106 | 5106 | | |
5107 | | - | |
5108 | | - | |
5109 | | - | |
5110 | | - | |
| 5107 | + | |
| 5108 | + | |
5111 | 5109 | | |
5112 | 5110 | | |
5113 | 5111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5242 | 5242 | | |
5243 | 5243 | | |
5244 | 5244 | | |
5245 | | - | |
5246 | | - | |
| 5245 | + | |
| 5246 | + | |
5247 | 5247 | | |
5248 | 5248 | | |
5249 | 5249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments