LemonBoy wrote:

> Here's [1] a rough patch implementing this nice suggestion.
> 
> [1] https://ptpb.pw/AJJpscgEsOtOus8fZNSl7g_DUDN7

There are a few compiler warnings:

ops.c: In function ‘op_yank’:
vim.h:603:16: warning: pointer targets in passing argument 1 of ‘smsg’ differ 
in signedness [-Wpointer-sign]
 #  define _(x) gettext((char *)(x))
                ^
ops.c:3176:12: note: in expansion of macro ‘_’
       smsg(_("block of 1 line yanked into '%c'"), regname);
            ^
In file included from vim.h:2118:0,
                 from ops.c:15:
proto.h:110:1: note: expected ‘char_u * {aka unsigned char *}’ but argument is 
of type ‘char *’
 smsg(char_u *, ...);
 ^~~~
In file included from ops.c:15:0:
vim.h:603:16: warning: pointer targets in passing argument 1 of ‘smsg’ differ 
in signedness [-Wpointer-sign]
 #  define _(x) gettext((char *)(x))
                ^
ops.c:3178:12: note: in expansion of macro ‘_’
       smsg(_("1 line yanked into '%c'"), regname);
            ^
In file included from vim.h:2118:0,
                 from ops.c:15:
proto.h:110:1: note: expected ‘char_u * {aka unsigned char *}’ but argument is 
of type ‘char *’
 smsg(char_u *, ...);
 ^~~~

Also, I think that when no register is specified it should not be
mentioned.

How about leaving out the quotes?  Using "a would be better:

        14 lines yanked into "a


-- 
>From "know your smileys":
 <<<:-{    Worf (Never smiles anyways, so he's a bad smiley)

 /// 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    ///

-- 
-- 
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.

Raspunde prin e-mail lui