Merge remote-tracking branch 'origin/pr/3562'

This commit is contained in:
Florian Bruhin 2018-02-21 10:11:40 +01:00
commit ecfd4a77a0
2 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,9 @@ def replace_variables(win_id, arglist):
'clipboard': utils.get_clipboard,
'primary': lambda: utils.get_clipboard(selection=True),
}
for key in list(variables):
modified_key = '{' + key + '}'
variables[modified_key] = lambda x=modified_key: x
values = {}
args = []
tabbed_browser = objreg.get('tabbed-browser', scope='window',

View File

@ -436,6 +436,11 @@ Feature: Various utility commands.
And I run :message-info {clipboard}bar{url}
Then the message "foobarhttp://localhost:*/hello.txt" should be shown
Scenario: escaping {{url}} variable
When I open data/hello.txt
And I run :message-info foo{{url}}bar
Then the message "foo{url}bar" should be shown
@xfail_norun
Scenario: {url} in clipboard should not be expanded
When I open data/hello.txt