test_insert_mode: Always set fake clipboard
Otherwise if we only run a keypress test, the fake clipboard won't be activated and thus the subsequent :yank-selected would write to the real clipboard.
This commit is contained in:
parent
6c4beef783
commit
2fb5de8bd3
@ -40,11 +40,11 @@ def test_insert_mode(file_name, source, input_text, auto_insert, quteproc):
|
||||
quteproc.set_setting('input', 'auto-insert-mode', auto_insert)
|
||||
quteproc.send_cmd(':hint all')
|
||||
quteproc.send_cmd(':follow-hint a')
|
||||
quteproc.send_cmd(':debug-set-fake-clipboard')
|
||||
|
||||
if source == 'keypress':
|
||||
quteproc.press_keys(input_text)
|
||||
elif source == 'clipboard':
|
||||
quteproc.send_cmd(':debug-set-fake-clipboard')
|
||||
quteproc.send_cmd(':debug-set-fake-clipboard "{}"'.format(input_text))
|
||||
quteproc.send_cmd(':paste-primary')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user