source:
patches/readline-6.3-branch_update-4.patch@
e184030
Last change on this file since e184030 was 05109c2, checked in by , 10 years ago | |
---|---|
|
|
File size: 5.6 KB |
-
readline-6.3
Submitted By: William Harrington (kb0iic at cross-lfs dot org) Date: 09-26-2014 Initial Package Version: 6.3 Origin: Upstream Upstream Status: Applied Description: Contains all upstream patches up to 6.3-008 diff -Naur readline-6.3.orig/display.c readline-6.3/display.c
old new 1637 1637 /* If we are changing the number of invisible characters in a line, and 1638 1638 the spot of first difference is before the end of the invisible chars, 1639 1639 lendiff needs to be adjusted. */ 1640 if (current_line == 0 && !_rl_horizontal_scroll_mode &&1640 if (current_line == 0 && /* !_rl_horizontal_scroll_mode && */ 1641 1641 current_invis_chars != visible_wrap_offset) 1642 1642 { 1643 1643 if (MB_CUR_MAX > 1 && rl_byte_oriented == 0) … … 1825 1825 else 1826 1826 _rl_last_c_pos += bytes_to_insert; 1827 1827 1828 /* XXX - we only want to do this if we are at the end of the line 1829 so we move there with _rl_move_cursor_relative */ 1828 1830 if (_rl_horizontal_scroll_mode && ((oe-old) > (ne-new))) 1829 goto clear_rest_of_line; 1831 { 1832 _rl_move_cursor_relative (ne-new, new); 1833 goto clear_rest_of_line; 1834 } 1830 1835 } 1831 1836 } 1832 1837 /* Otherwise, print over the existing material. */ … … 2677 2682 { 2678 2683 if (_rl_echoing_p) 2679 2684 { 2680 _rl_move_vert (_rl_vis_botlin); 2685 if (_rl_vis_botlin > 0) /* minor optimization plus bug fix */ 2686 _rl_move_vert (_rl_vis_botlin); 2681 2687 _rl_vis_botlin = 0; 2682 2688 fflush (rl_outstream); 2683 2689 rl_restart_output (1, 0); -
readline-6.3
diff -Naur readline-6.3.orig/input.c readline-6.3/input.c
old new 534 534 return (RL_ISSTATE (RL_STATE_READCMD) ? READERR : EOF); 535 535 else if (_rl_caught_signal == SIGHUP || _rl_caught_signal == SIGTERM) 536 536 return (RL_ISSTATE (RL_STATE_READCMD) ? READERR : EOF); 537 /* keyboard-generated signals of interest */ 537 538 else if (_rl_caught_signal == SIGINT || _rl_caught_signal == SIGQUIT) 538 539 RL_CHECK_SIGNALS (); 540 /* non-keyboard-generated signals of interest */ 541 else if (_rl_caught_signal == SIGALRM 542 #if defined (SIGVTALRM) 543 || _rl_caught_signal == SIGVTALRM 544 #endif 545 ) 546 RL_CHECK_SIGNALS (); 539 547 540 548 if (rl_signal_event_hook) 541 549 (*rl_signal_event_hook) (); -
readline-6.3
diff -Naur readline-6.3.orig/misc.c readline-6.3/misc.c
old new 461 461 saved_undo_list = 0; 462 462 /* Set up rl_line_buffer and other variables from history entry */ 463 463 rl_replace_from_history (entry, 0); /* entry->line is now current */ 464 entry->data = 0; /* entry->data is now current undo list */ 464 465 /* Undo all changes to this history entry */ 465 466 while (rl_undo_list) 466 467 rl_do_undo (); … … 468 469 the timestamp. */ 469 470 FREE (entry->line); 470 471 entry->line = savestring (rl_line_buffer); 471 entry->data = 0;472 472 } 473 473 entry = previous_history (); 474 474 } -
readline-6.3
diff -Naur readline-6.3.orig/patchlevel readline-6.3/patchlevel
old new 1 1 # Do not edit -- exists only for use by patch 2 2 3 5 3 8 -
readline-6.3
diff -Naur readline-6.3.orig/readline.c readline-6.3/readline.c
old new 744 744 r = _rl_subseq_result (r, cxt->oldmap, cxt->okey, (cxt->flags & KSEQ_SUBSEQ)); 745 745 746 746 RL_CHECK_SIGNALS (); 747 if (r == 0) /* success! */ 747 /* We only treat values < 0 specially to simulate recursion. */ 748 if (r >= 0 || (r == -1 && (cxt->flags & KSEQ_SUBSEQ) == 0)) /* success! or failure! */ 748 749 { 749 750 _rl_keyseq_chain_dispose (); 750 751 RL_UNSETSTATE (RL_STATE_MULTIKEY); … … 964 965 #if defined (VI_MODE) 965 966 if (rl_editing_mode == vi_mode && _rl_keymap == vi_movement_keymap && 966 967 key != ANYOTHERKEY && 967 rl_key_sequence_length == 1 && /* XXX */968 _rl_dispatching_keymap == vi_movement_keymap && 968 969 _rl_vi_textmod_command (key)) 969 970 _rl_vi_set_last (key, rl_numeric_arg, rl_arg_sign); 970 971 #endif -
rltypedefs.h
diff -Naur readline-6.3.orig/rltypedefs.h readline-6.3/rltypedefs.h
old new 26 26 extern "C" { 27 27 #endif 28 28 29 /* Old-style, attempt to mark as deprecated in some way people will notice. */ 30 31 #if !defined (_FUNCTION_DEF) 32 # define _FUNCTION_DEF 33 34 #if defined(__GNUC__) || defined(__clang__) 35 typedef int Function () __attribute__ ((deprecated)); 36 typedef void VFunction () __attribute__ ((deprecated)); 37 typedef char *CPFunction () __attribute__ ((deprecated)); 38 typedef char **CPPFunction () __attribute__ ((deprecated)); 39 #else 40 typedef int Function (); 41 typedef void VFunction (); 42 typedef char *CPFunction (); 43 typedef char **CPPFunction (); 44 #endif 45 46 #endif /* _FUNCTION_DEF */ 47 29 48 /* New style. */ 30 49 31 50 #if !defined (_RL_FUNCTION_TYPEDEF) -
readline-6.3
diff -Naur readline-6.3.orig/util.c readline-6.3/util.c
old new 476 476 return (strcpy ((char *)xmalloc (1 + (int)strlen (s)), (s))); 477 477 } 478 478 479 #if defined (DEBUG) 479 480 #if defined (USE_VARARGS) 480 481 static FILE *_rl_tracefp; 481 482 … … 538 539 _rl_tracefp = fp; 539 540 } 540 541 #endif 542 #endif /* DEBUG */ 541 543 542 544 543 545 #if HAVE_DECL_AUDIT_USER_TTY && defined (ENABLE_TTY_AUDIT_SUPPORT)
Note:
See TracBrowser
for help on using the repository browser.