Roland Eggner wrote:
> > > :mksession writes wrong column number of cursor position in presence of > > > multibyte characters. > > > > > > I have been using vim-7.3.135 with this patch applied for several > > > months … it works for me: > > > > I do not see the problem. How to reproduce? > > > > Your patch can't be right, the "l" command moves over characters, not > > columns. > > Session files created with :mksession restore cursor line and column, > as long as there is no multibyte character between start of line and > cursor. Otherwise, without my patch restored column is off by the > difference between character position and byte position counted from > start of line. > > With my patch applied, cursor line and column is restored correctly, > with and without multibyte characters, with and without changing of > options fileencoding or binary, even with files preprocessed by > BufRead autocommands gzip -dc, bzip -dc, xz -dc, pdftotext, elinks > -dump, antiword, … which I find pretty cool, use and enjoy it nearly > every day. I asked how to reproduce. I suspect your 'encoding' matters. Please start with "vim -u NONE" and check what the default value of 'encoding' is then. Note that your patch most likely is wrong when there is a Tab before the cursor, try that. -- Q: Why does /dev/null accept only integers? A: You can't sink a float. /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.