[pypy-commit] pypy default: Change the default mapping of the keys Home and End

arigo noreply at buildbot.pypy.org
Fri Apr 20 11:38:18 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r54565:771401a72a83
Date: 2012-04-20 11:37 +0200
http://bitbucket.org/pypy/pypy/changeset/771401a72a83/

Log:	Change the default mapping of the keys Home and End to go to the
	start/end of the current line instead of the start/end of the whole
	multi-line block.

diff --git a/lib_pypy/pyrepl/reader.py b/lib_pypy/pyrepl/reader.py
--- a/lib_pypy/pyrepl/reader.py
+++ b/lib_pypy/pyrepl/reader.py
@@ -152,8 +152,8 @@
      (r'\<delete>', 'delete'),
      (r'\<backspace>', 'backspace'),
      (r'\M-\<backspace>', 'backward-kill-word'),
-     (r'\<end>', 'end'),
-     (r'\<home>', 'home'),
+     (r'\<end>', 'end-of-line'),         # was 'end'
+     (r'\<home>', 'beginning-of-line'),  # was 'home'
      (r'\<f1>', 'help'),
      (r'\EOF', 'end'),  # the entries in the terminfo database for xterms
      (r'\EOH', 'home'), # seem to be wrong.  this is a less than ideal


More information about the pypy-commit mailing list