Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread Bram Moolenaar
> Of course vim can't possibly support all possible terminals > > My point is different. It's isn't working correctly on ANY of them. > > see https://github.com/microsoft/terminal/issues?q=vim+in%3Atitle+ That search results in several issues, which one is this about? This is about one

Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread rob
And https://jpsoft.com/forums/threads/incompatibility-of-tcmd-30-and-vim9.11517/unread?new=1 -- rob r...@drrob1.com On Sat, Jun 3, 2023, at 9:20 PM, Robert Solomon wrote: > Of course vim can't possibly support all possible terminals > > My point is different. It's isn't working

Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread Robert Solomon
Of course vim can't possibly support all possible terminals My point is different. It's isn't working correctly on ANY of them. see https://github.com/microsoft/terminal/issues?q=vim+in%3Atitle+ On Saturday, June 3, 2023 at 4:04:44 PM UTC-4 aro...@vex.net wrote: > > > Vim can't possibly add

Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread arocker
> Vim can't possibly add code to support each peculiarity of each of them. > I'm not sure what generic problem exists that is not terminal-specific. > The early days of Unix coincided with a Cabrian explosion of physical terminals. This led to the development of a database of terminal attributes

Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread Bram Moolenaar
> Which program do you mean when you say the good-old windows console > and the newer windows terminal? The Windows console is what was originally the console in MS-Windows. Perhaps people refer to it as command.com or cmd.exe. AFAIK this is available on every MS-Windows installation without

Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread Robert Solomon
Which program do you mean when you say the good-old windows console and the newer windows terminal? Others are reporting that vim does not work correctly in the current windows terminal. I just read in the JPSoft forum that the screen is scrambled upon exiting vim when called from windows

Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Bram Moolenaar
> Sorry but, > Out of well indexing, > which is faster ? > > 1) indexing by bytes -> legacy > 2) indexing by characters -> vim9script Indexing by bytes can be faster. But the difference is probably small, the computation of the index probably matters more. You'll have to try it out to know

Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Bram Moolenaar
> On 2023-06-03, Bram Moolenaar wrote: > > > >> Legacy Vim script: > >> > >> let text = 'àbc' > >> echo text[2] > >> > >> Result: 'b' > >> > >> Vim 9 script: > >> > >> const text = 'àbc' > >> echo text[2] > >> > >> Result: 'c' > >> > >> Is the different behavior (counting chars

Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread N i c o l a s
Hi Bram, Sorry but, Out of well indexing, which is faster ? 1) indexing by bytes -> legacy 2) indexing by characters -> vim9script Thank you for your answer. Nicolas ** Le samedi 3 juin 2023 à 13:12:53 UTC+2, Bram Moolenaar a écrit : > > > Legacy Vim script: > > > > let text = 'àbc' > > echo

Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
On 2023-06-03, Lifepillar wrote: >> Yes, in Vim9 script the index is in characters. In legacy script it is >> in bytes. >> >> The help for this doesn't have it's own tag, I'll add one. >> You can find it above ":help vim9-gotchas". > > I was expecting to find it under `:help vim9-differences`,

Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
On 2023-06-03, Bram Moolenaar wrote: > >> Legacy Vim script: >> >> let text = 'àbc' >> echo text[2] >> >> Result: 'b' >> >> Vim 9 script: >> >> const text = 'àbc' >> echo text[2] >> >> Result: 'c' >> >> Is the different behavior (counting chars vs bytes?) intentional? > > Yes, in

Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Bram Moolenaar
> Legacy Vim script: > > let text = 'àbc' > echo text[2] > > Result: 'b' > > Vim 9 script: > > const text = 'àbc' > echo text[2] > > Result: 'c' > > Is the different behavior (counting chars vs bytes?) intentional? Yes, in Vim9 script the index is in characters. In legacy

Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
On 2023-06-03, Lifepillar wrote: > On 2023-06-03, Lifepillar wrote: > Mmh, even strpart(), which is supposed to count bytes, gives the same > result: Forget this: strpart() is fine. I have trouble just with indexing. Life. -- -- You received this message from the "vim_use" maillist. Do

Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
On 2023-06-03, Lifepillar wrote: > Legacy Vim script: > > let text = 'àbc' > echo text[2] > > Result: 'b' > > Vim 9 script: > > const text = 'àbc' > echo text[2] > > Result: 'c' > > Is the different behavior (counting chars vs bytes?) intentional? Mmh, even strpart(), which is

[vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
Legacy Vim script: let text = 'àbc' echo text[2] Result: 'b' Vim 9 script: const text = 'àbc' echo text[2] Result: 'c' Is the different behavior (counting chars vs bytes?) intentional? Thanks, Life. -- -- You received this message from the "vim_use" maillist. Do not

Re: The package you uploaded (vim-noweb.tgz) is empty

2023-06-03 Thread Lifepillar
On 2023-06-02, Bram Moolenaar wrote: > You could try using another browser. I have tried with Safari, Brave, and LibreWolf (~Firefox) on macOS to no avail. I have taken care to disable ad blockers and, afaics, only cross-site cookies are blocked. Life. -- -- You received this message from