D6619: crecord: fix if -> elif when handling key presses
spectral (Kyle Lippincott)
phabricator at mercurial-scm.org
Mon Jul 8 16:29:02 EDT 2019
spectral created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
This shouldn't actually change any behavior, I only noticed it since I started
using KEY_UP in tests, and it was complaining when it got down to the ^L
handler that initscr hadn't been called yet.
diff --git a/mercurial/crecord.py b/mercurial/crecord.py
@@ -1724,7 +1724,7 @@
keypressed = pycompat.bytestr(keypressed)
if keypressed in ["k", "KEY_UP"]:
- if keypressed in ["K", "KEY_PPAGE"]:
+ elif keypressed in ["K", "KEY_PPAGE"]:
elif keypressed in ["j", "KEY_DOWN"]:
To: spectral, #hg-reviewers
More information about the Mercurial-devel