* We're actually using the emacs keymap by default, and that had rl_rubout
instead of rl_delete for the delete key. That was one reason for bug #1495. * The other one was that an inputrc file at /etc was ignored, the bash would only check for ~/.inputrc. If changed that now such that if ~/.inputrc could not be read, /etc/inputrc is tried. * Both of these changes close #1495. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23783 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -699,6 +699,8 @@ int
|
|||||||
rl_read_init_file (filename)
|
rl_read_init_file (filename)
|
||||||
const char *filename;
|
const char *filename;
|
||||||
{
|
{
|
||||||
|
int result;
|
||||||
|
|
||||||
/* Default the filename. */
|
/* Default the filename. */
|
||||||
if (filename == 0)
|
if (filename == 0)
|
||||||
{
|
{
|
||||||
@@ -717,7 +719,11 @@ rl_read_init_file (filename)
|
|||||||
return 0;
|
return 0;
|
||||||
filename = "~/_inputrc";
|
filename = "~/_inputrc";
|
||||||
#endif
|
#endif
|
||||||
return (_rl_read_init_file (filename, 0));
|
result = (_rl_read_init_file (filename, 0));
|
||||||
|
if (result != 0 && filename == DEFAULT_INPUTRC)
|
||||||
|
result = (_rl_read_init_file ("/etc/inputrc", 0));
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ KEYMAP_ENTRY_ARRAY emacs_standard_keymap = {
|
|||||||
{ ISFUNC, rl_insert }, /* | */
|
{ ISFUNC, rl_insert }, /* | */
|
||||||
{ ISFUNC, rl_insert }, /* } */
|
{ ISFUNC, rl_insert }, /* } */
|
||||||
{ ISFUNC, rl_insert }, /* ~ */
|
{ ISFUNC, rl_insert }, /* ~ */
|
||||||
{ ISFUNC, rl_rubout }, /* RUBOUT */
|
{ ISFUNC, rl_delete }, /* RUBOUT */
|
||||||
|
|
||||||
#if KEYMAP_SIZE > 128
|
#if KEYMAP_SIZE > 128
|
||||||
/* Pure 8-bit characters (128 - 159).
|
/* Pure 8-bit characters (128 - 159).
|
||||||
|
|||||||
Reference in New Issue
Block a user