diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 448741f9f..d5e1797ac 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1255,7 +1255,7 @@ class CommandDispatcher: } if count is not None: - env['QUTE_COUNT'] = str(count) # must be str + env['QUTE_COUNT'] = str(count) idx = self._current_index() if idx != -1: diff --git a/tests/end2end/data/userscripts/hello_if_count b/tests/end2end/data/userscripts/hello_if_count index efc8bdd6e..b9f07b86f 100755 --- a/tests/end2end/data/userscripts/hello_if_count +++ b/tests/end2end/data/userscripts/hello_if_count @@ -1,6 +1,6 @@ #!/bin/bash -if [ "$QUTE_COUNT" = "5" ]; then +if [ "$QUTE_COUNT" -eq 5 ]; then echo "message-info 'Count is five!'" >> "$QUTE_FIFO"