Commit d8b5a48
Avoid scrolling when the search is open (#19775)
When text scrolls in and out of view, depending on the length
of the scrollback and latency of input, `GetSearchHighlightFocused`
would change which would trigger a `ScrollToSearchHighlight` call.
This PR changes the behavior such that only actively changing the
search mask triggers a search (typing text or pressing enter).
Closes #19754
## Validation Steps Performed
* Brining text in and out of view doesn't scroll ✅
* Toggling the aA button scrolls results into view ✅
(cherry picked from commit 71409f8)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzgkLCdk
Service-Version: 1.241 parent 8889180 commit d8b5a48
File tree
4 files changed
+46
-26
lines changed- src/cascadia/TerminalControl
4 files changed
+46
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
1687 | | - | |
| 1687 | + | |
1688 | 1688 | | |
1689 | 1689 | | |
1690 | 1690 | | |
| |||
1693 | 1693 | | |
1694 | 1694 | | |
1695 | 1695 | | |
1696 | | - | |
| 1696 | + | |
1697 | 1697 | | |
1698 | 1698 | | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | 1699 | | |
1706 | 1700 | | |
1707 | 1701 | | |
| |||
1710 | 1704 | | |
1711 | 1705 | | |
1712 | 1706 | | |
1713 | | - | |
| 1707 | + | |
1714 | 1708 | | |
1715 | 1709 | | |
1716 | 1710 | | |
1717 | 1711 | | |
1718 | 1712 | | |
1719 | 1713 | | |
| 1714 | + | |
1720 | 1715 | | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
1725 | 1719 | | |
1726 | 1720 | | |
1727 | 1721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
721 | | - | |
722 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
723 | 730 | | |
724 | 731 | | |
725 | 732 | | |
| |||
753 | 760 | | |
754 | 761 | | |
755 | 762 | | |
756 | | - | |
757 | | - | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
758 | 772 | | |
759 | 773 | | |
760 | 774 | | |
| |||
773 | 787 | | |
774 | 788 | | |
775 | 789 | | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
781 | 799 | | |
782 | 800 | | |
783 | 801 | | |
| |||
3862 | 3880 | | |
3863 | 3881 | | |
3864 | 3882 | | |
3865 | | - | |
3866 | | - | |
| 3883 | + | |
| 3884 | + | |
| 3885 | + | |
| 3886 | + | |
| 3887 | + | |
| 3888 | + | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
3867 | 3892 | | |
3868 | 3893 | | |
3869 | 3894 | | |
| |||
0 commit comments