ex_getln.c: Enable middle click pasting in command mode

This commit is contained in:
watiko 2016-02-23 03:00:56 +09:00
parent 0e9f7a7b36
commit 43456e43de

View File

@ -1130,7 +1130,7 @@ static int command_line_handle_key(CommandLineState *s)
if (!mouse_has(MOUSE_COMMAND)) {
return command_line_not_changed(s); // Ignore mouse
}
cmdline_paste(0, true, true);
cmdline_paste(eval_has_provider("clipboard") ? '*' : 0, true, true);
redrawcmd();
return command_line_changed(s);