[readline] fix some broken shortcuts

Defect Number:
    Reviewed By:
   Testing Done:
pull/627/head
Timothy Stack 6 years ago
parent d46cfa1a8c
commit 42be76c3ba

@ -1342,6 +1342,14 @@ static void looper()
(void)noecho();
(void)nodelay(lnav_data.ld_window, 1);
{
struct termios tio;
tcgetattr(STDIN_FILENO, &tio);
tio.c_cc[VDSUSP] = 0;
tcsetattr(STDIN_FILENO, TCSANOW, &tio);
}
define_key("\033Od", KEY_BEG);
define_key("\033Oc", KEY_END);
@ -1544,6 +1552,7 @@ static void looper()
while ((ch = getch()) != ERR) {
alerter::singleton().new_input(ch);
log_debug("ch %d", ch);
/* Check to make sure there is enough space for a
* character and a string terminator.
*/

@ -369,6 +369,8 @@ void readline_command_highlighter(attr_line_t &al, int x)
pcre_input pi(line);
size_t ws_index;
ws_index = line.find(' ');
string command = line.substr(0, ws_index);
if (ws_index != string::npos) {

Loading…
Cancel
Save