Use a separate variable for deciding whether or not to trigger
TextChangedI autocommand or not. Else we may skip an existing
TextChanged autocommand, just because TextChangedI triggered right
before.
fixes #8932
Note the test: For some reason, evaluating the g:autocmd_n variable was
never performed, therefore currently disabled. I tried different variations
of feedkeys() with different flags and :norm! commands. I could never make it trigger
when run automatically...
Not sure why, it works when running the test interactively, so probably something with
type-ahead?
I also verified, it fixes the issue mentioned in #8932.
If anybody has an idea to trigger TextChanged correctly in the test, please let me know.
https://github.com/vim/vim/pull/8968
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
![]()
Merging #8968 (5bbbe68) into master (78e0fa4) will decrease coverage by
87.63%.
The diff coverage is0.00%.
❗ Current head 5bbbe68 differs from pull request most recent head 33a14da. Consider uploading reports for the commit 33a14da to get more accurate results
@@ Coverage Diff @@ ## master #8968 +/- ## =========================================== - Coverage 90.08% 2.45% -87.64% =========================================== Files 151 149 -2 Lines 168914 165926 -2988 =========================================== - Hits 152171 4077 -148094 - Misses 16743 161849 +145106
| Flag | Coverage Δ | |
|---|---|---|
| huge-clang-none | ? |
|
| huge-gcc-none | ? |
|
| huge-gcc-testgui | ? |
|
| huge-gcc-unittests | 2.45% <0.00%> (-0.01%) |
⬇️ |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/buffer.c | 3.46% <0.00%> (-88.69%) |
⬇️ |
| src/bufwrite.c | 0.00% <ø> (-84.41%) |
⬇️ |
| src/edit.c | 0.00% <0.00%> (-92.91%) |
⬇️ |
| src/float.c | 0.00% <0.00%> (-99.22%) |
⬇️ |
| src/gui_gtk_f.c | 0.00% <0.00%> (-97.43%) |
⬇️ |
| src/crypt_zip.c | 0.00% <0.00%> (-97.06%) |
⬇️ |
| src/cmdhist.c | 0.00% <0.00%> (-97.00%) |
⬇️ |
| src/sha256.c | 0.00% <0.00%> (-96.94%) |
⬇️ |
| src/evalbuffer.c | 0.00% <0.00%> (-96.88%) |
⬇️ |
| src/textprop.c | 0.00% <0.00%> (-96.84%) |
⬇️ |
| ... and 140 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update 78e0fa4...33a14da. Read the comment docs.