Björn Linse
26fedb133d
clipboard: cleanup valid_yank_reg
and use it for :redir
...
This fixes missing clipboard support for `:redir`
Helped-By: Michael Reed <m.reed@mykolab.com>
Helped-By: Scott Prager <splinterofchaos@gmail.com>
2015-04-17 16:12:32 +02:00
Björn Linse
edb13791bd
clipboard: simplify handling of of put in visual mode.
...
When clipboard=unnamed and put over visual selection, reduces number of
provider calls from 6 to 2. Also add test.
2015-04-17 11:34:06 +02:00
Björn Linse
9978a01faa
clipboard: fix "" register not updated when clipboard=unnamed
...
Helped-By: Scott Prager <splinterofchaos@gmail.com>
2015-04-11 11:11:52 +02:00
Björn Linse
941b02af4c
clipboard: adjust v:register when clipboard=unnamed
...
Helped-By: Nicolas Hillegeer <nicolas@hillegeer.com>
Helped-By: Michael Reed <m.reed@mykolab.com>
2015-04-11 11:11:52 +02:00
Björn Linse
adcf268a72
clipboard: handle clipboard reading directly in get_yank_register
...
This makes :<c-r>* work as expected and
avoids clobbering zero register ("0) when pasting unnamed clipboard
Helped-By: Scott Prager <splinterofchaos@gmail.com>
Helped-By: Michael Reed <m.reed@mykolab.com>
2015-04-05 11:34:14 +02:00
Björn Linse
db92fcdba3
test/clipboard: more clipboard test cleanups
2015-04-05 11:34:13 +02:00
Björn Linse
7422843f5c
clipboard: improve the handling of newlines in get_clipboard
...
This makes the interpretion consistent with the way newlines are used in
the VIMENC format, while keeping the same fallback behaviour when
regtype is unspecified. Also check both cases explicitly in the tests.
2015-04-05 11:34:13 +02:00
Björn Linse
34dba3d7cd
clipboard: reallow :put
2015-04-05 11:34:13 +02:00
Björn Linse
5600b80c1f
clipboard: show "* and "+ in :registers
...
Helped-by: Robin Allen <r@foon.uk>
Helped-by: Scott Prager <splinterofchaos@gmail.com>
2015-04-05 11:34:13 +02:00
Björn Linse
638ceea092
test/clipboard: split unrelated subtests
2015-04-05 11:34:13 +02:00
Björn Linse
da85859567
clipboard: more register tests for delete
2015-01-27 19:43:25 -05:00
Thiago de Arruda
5b65ac2ca7
test: Make it possible to run functional tests with plain lua
...
Replace the hexadecimal escape sequences, which are only supported by luajit
2015-01-22 08:54:42 -03:00
Björn Linse
6ddbe6d9be
clipboard: fix let @+ = ...
and add test
2014-12-08 22:05:05 +01:00
Björn Linse
d9639d3a9b
clipboard: add functional test
2014-12-08 22:05:05 +01:00