Repository navigation
Conversation
Problem: Folds of a diff window in another tab page are computed with
the diff of the current tab page and are not updated when
that tab page is entered.
Solution: Use the tab page of the window in diff_infold().
|
thanks, makes sense |
|
hm, the test does not fail unpatched, but setbufline() makes it fail instead. |
…page (#42714) Problem: Folds of a diff window in another tab page are computed with the diff of the current tab page and are not updated when that tab page is entered. Solution: Use the tab page of the window in diff_infold() (glepnir). closes: vim/vim#21678 vim/vim@1f81e52 Co-authored-by: glepnir <[email protected]>
|
Since this patch, Test_crash1_2 fails on Linux and macOS in CI. The 9.2.1295: https://github.com/vim/vim/actions/runs/42090810681 In the run for 9.2.1294 the test jobs that got past the build step |
|
I ran it locally: Vim does not crash, the "crash 6" case is slow. The slowdown comes from the win_valid() call added to diff_infold(), - tp = win_valid(wp) ? curtab : win_find_tabpage(wp);
+ tp = curtab;With that, the case takes 0.8 seconds again. |
|
Thanks. Fixed in #21782 by looking up the tab page once per fold update. |
Problem: diff_infold() checks the tab page of the window for every
line, which is slow with many windows (Test_crash1_2 times out
after v9.2.1295).
Solution: Find the tab page once in foldUpdateIEMS() and pass it to
diff_infold() (glephunter).
related: #21678
closes: #21782
Signed-off-by: glepnir <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
Problem: diff_infold() checks the tab page of the window for every
line, which is slow with many windows (Test_crash1_2 times out
after v9.2.1295).
Solution: Find the tab page once in foldUpdateIEMS() and pass it to
diff_infold() (glephunter).
vim/vim@34b846a
related: vim/vim#21678
closes: vim/vim#21782
Co-authored-by: glepnir <[email protected]>
Signed-off-by: Hirohito Higashi <[email protected]>
…page
Problem: Folds of a diff window in another tab page are computed with
the diff of the current tab page and are not updated when
that tab page is entered.
Solution: Use the tab page of the window in diff_infold() (glepnir).
vim/vim@1f81e52
closes: vim/vim#21678
closes: viai-editor#211
Co-authored-by: glepnir <[email protected]>
Signed-off-by: Hirohito Higashi <[email protected]>
Problem: diff_infold() checks the tab page of the window for every
line, which is slow with many windows (Test_crash1_2 times out
after v9.2.1295).
Solution: Find the tab page once in foldUpdateIEMS() and pass it to
diff_infold() (glephunter).
vim/vim@34b846a
related: vim/vim#21678
closes: vim/vim#21782
closes: viai-editor#211
Co-authored-by: glepnir <[email protected]>
Signed-off-by: Hirohito Higashi <[email protected]>
…page
Problem: Folds of a diff window in another tab page are computed with
the diff of the current tab page and are not updated when
that tab page is entered.
Solution: Use the tab page of the window in diff_infold() (glepnir).
vim/vim@1f81e52
closes: vim/vim#21678
closes: #211
Co-authored-by: glepnir <[email protected]>
Signed-off-by: Hirohito Higashi <[email protected]>
Problem: diff_infold() checks the tab page of the window for every
line, which is slow with many windows (Test_crash1_2 times out
after v9.2.1295).
Solution: Find the tab page once in foldUpdateIEMS() and pass it to
diff_infold() (glephunter).
vim/vim@34b846a
related: vim/vim#21678
closes: vim/vim#21782
closes: #211
Co-authored-by: glepnir <[email protected]>
Signed-off-by: Hirohito Higashi <[email protected]>
Problem: diff_infold() checks the tab page of the window for every
line, which is slow with many windows (Test_crash1_2 times out
after v9.2.1295).
Solution: Find the tab page once in foldUpdateIEMS() and pass it to
diff_infold() (glephunter).
related: vim/vim#21678
closes: vim/vim#21782
vim/vim@34b846a
Co-authored-by: glepnir <[email protected]>
…42756) Problem: diff_infold() checks the tab page of the window for every line, which is slow with many windows (Test_crash1_2 times out after v9.2.1295). Solution: Find the tab page once in foldUpdateIEMS() and pass it to diff_infold() (glephunter). related: vim/vim#21678 closes: vim/vim#21782 vim/vim@34b846a Co-authored-by: glepnir <[email protected]>
Problem: Folds of a diff window in another tab page are computed with
the diff of the current tab page and are not updated when
that tab page is entered.
Solution: Use the tab page of the window in diff_infold().
related: neovim/neovim#42576
AI assistance
Checklist
Signed-off-by:trailer is present (git commit -s), recommended but not requiredTests
Documentation
runtime/doc/was updatedAnything reviewers should know