source:
scripts/patches/readline-5.1-fixes-2.patch@
ec96aa6
Last change on this file since ec96aa6 was 46f79ff, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.1 KB |
-
readline-5.1
Submitted By: Jim Gifford (patches at jg555 dot com) Date: 2006-02-06 Initial Package Version: 5.1 Origin: Upstream Upstream Status: Applied Description: Contains Patch 001-002 from Upstream diff -Naur readline-5.1.orig/readline.c readline-5.1/readline.c
old new 714 714 715 715 rl_dispatching = 1; 716 716 RL_SETSTATE(RL_STATE_DISPATCHING); 717 r =(*map[key].function)(rl_numeric_arg * rl_arg_sign, key);717 (*map[key].function)(rl_numeric_arg * rl_arg_sign, key); 718 718 RL_UNSETSTATE(RL_STATE_DISPATCHING); 719 719 rl_dispatching = 0; 720 720 -
readline-5.1
diff -Naur readline-5.1.orig/terminal.c readline-5.1/terminal.c
old new 122 122 static char *_rl_visible_bell; 123 123 124 124 /* Non-zero means the terminal can auto-wrap lines. */ 125 int _rl_term_autowrap ;125 int _rl_term_autowrap = -1; 126 126 127 127 /* Non-zero means that this terminal has a meta key. */ 128 128 static int term_has_meta; … … 274 274 _rl_set_screen_size (rows, cols) 275 275 int rows, cols; 276 276 { 277 if (_rl_term_autowrap == -1) 278 _rl_init_terminal_io (rl_terminal_name); 279 277 280 if (rows > 0) 278 281 _rl_screenheight = rows; 279 282 if (cols > 0) -
readline-5.1
diff -Naur readline-5.1.orig/text.c readline-5.1/text.c
old new 1071 1071 rl_delete (count, key) 1072 1072 int count, key; 1073 1073 { 1074 int r;1075 1076 1074 if (count < 0) 1077 1075 return (_rl_rubout_char (-count, key)); 1078 1076 … … 1090 1088 else 1091 1089 rl_forward_byte (count, key); 1092 1090 1093 r = rl_kill_text (orig_point, rl_point);1091 rl_kill_text (orig_point, rl_point); 1094 1092 rl_point = orig_point; 1095 return r;1096 1093 } 1097 1094 else 1098 1095 { 1099 1096 int new_point; 1100 1097 1101 1098 new_point = MB_NEXTCHAR (rl_line_buffer, rl_point, 1, MB_FIND_NONZERO); 1102 r eturn (rl_delete_text (rl_point, new_point));1099 rl_delete_text (rl_point, new_point); 1103 1100 } 1101 return 0; 1104 1102 } 1105 1103 1106 1104 /* Delete the character under the cursor, unless the insertion
Note:
See TracBrowser
for help on using the repository browser.