From 0e3e41a5e84b28764db393c3a202fd2109242e3b Mon Sep 17 00:00:00 2001 From: wishfort36 <42300264+wishfort36@users.noreply.github.com> Date: Mon, 13 Aug 2018 07:50:54 +0200 Subject: [PATCH] Handle nitpicks --- qutebrowser/browser/commands.py | 2 +- tests/end2end/data/userscripts/hello_if_count | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"