Yukihiro Nakadaira wrote: > According to :help getregtype(), it returns 0 for empty or unknown > register. But it returns "" for empty register. And it returns unnamed > register's type for unknown register. > > Steps to reproduce: > $ vim -u NONE -i NONE > :" test for empty register > :echo getregtype('a') is '' > :" test for unknown register > :echo getregtype('^') is '' > :call setreg('"', 'v') > :echo getregtype('^') is '' > > Result: > 1 > 1 > 0 > > Expected: > 1 > 1 > 1 > > > I think it should be fixed as following. Please check it.
Thanks, I'll check it out. -- hundred-and-one symptoms of being an internet addict: 97. Your mother tells you to remember something, and you look for a File/Save command. /// 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.