Re: [vim/vim] GVIM not reporting correct byte offsets (Issue #13731)

2023-12-20 Fir de Conversatie Gary Johnson
On 2023-12-20, zeertzjq wrote: > And, some bytes in the file correspond to a multibyte char in latin-1 > encoding, > so such a byte counts as two bytes. I didn't understand that statement at first, but now I do. Thanks. When Vim's 'encoding' is utf-8 and it reads a file it sees as having a

Re: [vim/vim] GVIM not reporting correct byte offsets (Issue #13731)

2023-12-19 Fir de Conversatie Gary Johnson
On 2023-12-19, 3052 wrote: > Steps to reproduce > > using this file (inside, not the zip): > > https://github.com/vim/vim/files/13720982/index_video_5_0_1.zip > > If I open the same file in GVIM and enter /mdat, enter, g, ctrl+g I get: > > Byte 2785 > > Expected behaviour > > if I run this