Commit 239c4e4
patch 9.1.1571: CmdlineChanged triggered to often
Problem: The CmdlineChanged event was firing unnecessarily, even when
the command line's content hadn't actually changed.
Solution: I've added a check to compare the command-line buffer's state
before and after key processing. The `CmdlineChanged` event
now only triggers if the buffer's contents are genuinely
different (Girish Palya).
closes: #17803
Signed-off-by: Girish Palya <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>1 parent 1afe8c3 commit 239c4e4
3 files changed
Lines changed: 71 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1633 | 1633 | | |
1634 | 1634 | | |
1635 | 1635 | | |
1636 | | - | |
1637 | 1636 | | |
1638 | 1637 | | |
1639 | 1638 | | |
| |||
1649 | 1648 | | |
1650 | 1649 | | |
1651 | 1650 | | |
| 1651 | + | |
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
| |||
1820 | 1820 | | |
1821 | 1821 | | |
1822 | 1822 | | |
| 1823 | + | |
1823 | 1824 | | |
1824 | 1825 | | |
1825 | 1826 | | |
| |||
1836 | 1837 | | |
1837 | 1838 | | |
1838 | 1839 | | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
1839 | 1847 | | |
1840 | 1848 | | |
1841 | 1849 | | |
| |||
2566 | 2574 | | |
2567 | 2575 | | |
2568 | 2576 | | |
| 2577 | + | |
| 2578 | + | |
2569 | 2579 | | |
| 2580 | + | |
2570 | 2581 | | |
2571 | 2582 | | |
2572 | 2583 | | |
| |||
2578 | 2589 | | |
2579 | 2590 | | |
2580 | 2591 | | |
2581 | | - | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
2582 | 2596 | | |
2583 | 2597 | | |
| 2598 | + | |
| 2599 | + | |
2584 | 2600 | | |
2585 | 2601 | | |
2586 | | - | |
2587 | 2602 | | |
2588 | | - | |
2589 | | - | |
2590 | 2603 | | |
2591 | 2604 | | |
2592 | 2605 | | |
| |||
2695 | 2708 | | |
2696 | 2709 | | |
2697 | 2710 | | |
| 2711 | + | |
| 2712 | + | |
2698 | 2713 | | |
2699 | 2714 | | |
2700 | 2715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4691 | 4691 | | |
4692 | 4692 | | |
4693 | 4693 | | |
| 4694 | + | |
| 4695 | + | |
| 4696 | + | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
| 4724 | + | |
| 4725 | + | |
| 4726 | + | |
| 4727 | + | |
| 4728 | + | |
| 4729 | + | |
| 4730 | + | |
| 4731 | + | |
| 4732 | + | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
| 4736 | + | |
| 4737 | + | |
| 4738 | + | |
| 4739 | + | |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
4694 | 4743 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| 722 | + | |
| 723 | + | |
722 | 724 | | |
723 | 725 | | |
724 | 726 | | |
| |||
0 commit comments