diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-10-31 17:13:31 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2025-10-31 18:46:01 +0800 |
| commit | a0f3fdba582f817242554a9922943b005f3bd49d (patch) | |
| tree | e41f86e0c65acacd0574eeed9f181f968ec59b68 /runtime/lua/vim/_stringbuffer.lua | |
| parent | d825e5116981da249720a4a5f18f11939d8d00fd (diff) | |
| download | rneovim-a0f3fdba582f817242554a9922943b005f3bd49d.tar.gz rneovim-a0f3fdba582f817242554a9922943b005f3bd49d.tar.bz2 rneovim-a0f3fdba582f817242554a9922943b005f3bd49d.zip | |
vim-patch:9.1.1479: regression when displaying localized percentage position
Problem: regression when displaying localized percentage position
(after v9.1.1291)
Solution: calculate percentage first (Emir SARI)
Cleanups made in ec032de broke the Turkish percent display, failing to
prepend it properly in cases between 0 and 10. In Turkish, the percent
sign is prepended to the number, so it was displaying it as `% 5`
(should have been `%5`), while displaying numbers bigger than 9 properly.
related: vim/vim#17597
https://github.com/vim/vim/commit/8fe9e55a7d92870f5bbaa592e1f3617e9cda33c6
The test was unskipped in Vim in patch 9.1.1479 which added Turkish
translation for "%d%%". However, Nvim has had Turkish translation for
"%d%%" since 2023, so don't skip the test.
Co-authored-by: Emir SARI <emir_sari@icloud.com>
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions