summaryrefslogtreecommitdiff
path: root/poezio/windows/inputs.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-18 08:04:56 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-18 08:04:56 +0100
commitaccf6ab7779d98e3fb0d4790dd2146b0061635a4 (patch)
tree7429b8e5340d7c9c1ea0dd9f35861a4cb9e1c6d7 /poezio/windows/inputs.py
parent73749091aec9b2e7780a4f913268bcfc73e86e1e (diff)
downloadpoezio-accf6ab7779d98e3fb0d4790dd2146b0061635a4.tar.gz
poezio-accf6ab7779d98e3fb0d4790dd2146b0061635a4.tar.bz2
poezio-accf6ab7779d98e3fb0d4790dd2146b0061635a4.tar.xz
poezio-accf6ab7779d98e3fb0d4790dd2146b0061635a4.zip
Fix wrong tests for None.
Diffstat (limited to 'poezio/windows/inputs.py')
-rw-r--r--poezio/windows/inputs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/windows/inputs.py b/poezio/windows/inputs.py
index b48fe318..6b0bc798 100644
--- a/poezio/windows/inputs.py
+++ b/poezio/windows/inputs.py
@@ -725,7 +725,7 @@ class CommandInput(HistoryInput):
HistoryInput.__init__(self)
self.on_abort = on_abort
self.on_success = on_success
- if on_input is None:
+ if on_input is not None:
self.on_input = on_input
else:
self.on_input = DEFAULT_ON_INPUT