On Saturday, August 22, 2015 at 4:04:57 PM UTC+2, Bram Moolenaar wrote: > Björn Linse wrote: > > > ":set all&" might change &encoding without reexecuting "mb_init()", if > > encoding was changed earlier from the locale default, leaving multibyte > > handling in inconsistent state. > > > > To reproduce (assuming utf-8 locale): > > vim -u NONE --cmd "set enc=latin1" > > > > Inside vim, type ":set all&", now ":set enc" shows "utf-8", but vim still > > behaves as if enc=latin1, and by running inside gdb and "break mb_init", it > > is confirmed that mb_init wasn't reexecuted. > > > > Earlier discussion: > > https://github.com/neovim/neovim/pull/2929#issuecomment-128849173 > > Thanks for reporting this. I suppose the solution would not be > difficult, just cal mb_init() in this situation. > > -- > Sorry, no fortune today. > > /// Bram Moolenaar -- [email protected] -- 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 ///
Similar issue with laststatus. `:set ls=2` and then `set all&` now `set ls` gives 1 but vim still behaves as if `&ls=2`. Also, I think a redraw is missing (for nohlsearch, for instance) -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
