octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49323] Readline library does not support vi-m


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #49323] Readline library does not support vi-mode correctly
Date: Thu, 13 Oct 2016 15:38:30 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #12, bug #49323 (project octave):

Report the bug for readline.  Here is a minimal example that allows me to
demonstrate the problem:


#include <stdio.h>
#include <readline/readline.h>

static int
event_hook (void)
{
  return 0;
}

int
main (void)
{
  rl_event_hook = event_hook;

  while (1)
    printf ("==> %s\n", readline (">>> "));

  return 0;
}


On my system, I just need to use "gcc foo.c -lreadline" to compile it.  Then
run the program and enter vi editing mode, either by setting it in an inputrc
file or by using M-C-m to switch the mode.  Then I can get characters to
randomly disappear just by typing something and then using the left arrow key
to move the cursor.  History is not needed to show the problem.  Just vi mode
and a trivial event function.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49323>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]