Patchwork D6619: crecord: fix if -> elif when handling key presses

login
register
mail settings
Submitter phabricator
Date July 8, 2019, 10:04 p.m.
Message ID <49c6a6e6c8228e647f4551c803d5a82b@localhost.localdomain>
Download mbox | patch
Permalink /patch/40838/
State Not Applicable
Headers show

Comments

phabricator - July 8, 2019, 10:04 p.m.
Closed by commit rHG3be6ff55095b: crecord: fix if -&gt; elif when handling key presses (authored by spectral).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6619?vs=15811&id=15820

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6619/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6619

AFFECTED FILES
  mercurial/crecord.py

CHANGE DETAILS




To: spectral, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -1724,7 +1724,7 @@ 
         keypressed = pycompat.bytestr(keypressed)
         if keypressed in ["k", "KEY_UP"]:
             self.uparrowevent()
-        if keypressed in ["K", "KEY_PPAGE"]:
+        elif keypressed in ["K", "KEY_PPAGE"]:
             self.uparrowshiftevent()
         elif keypressed in ["j", "KEY_DOWN"]:
             self.downarrowevent()