[svn-commits] seanbright: branch seanbright/editline-update r253531 - /team/seanbright/edit...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Mar 19 10:07:38 CDT 2010


Author: seanbright
Date: Fri Mar 19 10:07:34 2010
New Revision: 253531

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=253531
Log:
Integrate patch from issue 15929

Modified:
    team/seanbright/editline-update/main/asterisk.c

Modified: team/seanbright/editline-update/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/seanbright/editline-update/main/asterisk.c?view=diff&rev=253531&r1=253530&r2=253531
==============================================================================
--- team/seanbright/editline-update/main/asterisk.c (original)
+++ team/seanbright/editline-update/main/asterisk.c Fri Mar 19 10:07:34 2010
@@ -2540,6 +2540,17 @@
 	el_set(el, EL_BIND, "?", "ed-complete", NULL);
 	/* Bind ^D to redisplay */
 	el_set(el, EL_BIND, "^D", "ed-redisplay", NULL);
+	/* Bind Delete to delete char left */
+	el_set(el, EL_BIND, "\\e[3~", "ed-delete-next-char", NULL);
+	/* Bind Home and End to move to line start and end */
+	el_set(el, EL_BIND, "\\e[1~", "ed-move-to-beg", NULL);
+	el_set(el, EL_BIND, "\\e[4~", "ed-move-to-end", NULL);
+	/* Bind C-left and C-right to move by word (not all terminals) */
+	el_set(el, EL_BIND, "\\eOC", "vi-next-space-word", NULL);
+	el_set(el, EL_BIND, "\\eOD", "vi-prev-space-word", NULL);
+
+	/* Allow ~/.editrc or a file specified by EDITRC env to override */
+	el_source(el, NULL);
 
 	return 0;
 }




More information about the svn-commits mailing list