source:
patches/readline-6.0-branch_update-2.patch@
776ab426
Last change on this file since 776ab426 was 25e84be, checked in by , 15 years ago | |
---|---|
|
|
File size: 4.3 KB |
-
readline-6.0
Submitted By: Jonathan Norman (jonathan at bluesquarelinux.co.uk) Date: 2009-12-31 Initial Package Version: 6.0 Origin: Upstream Upstream Status: Applied Description: Contains all upstream patches up to 6.0-004 diff -Naur readline-6.0.orig/display.c readline-6.0/display.c
old new 512 512 /* Block keyboard interrupts because this function manipulates global 513 513 data structures. */ 514 514 _rl_block_sigint (); 515 RL_SETSTATE (RL_STATE_REDISPLAYING); 515 516 516 517 if (!rl_display_prompt) 517 518 rl_display_prompt = ""; … … 1191 1192 if (!rl_display_fixed || forced_display || lmargin != last_lmargin) 1192 1193 { 1193 1194 forced_display = 0; 1195 o_cpos = _rl_last_c_pos; 1196 cpos_adjusted = 0; 1194 1197 update_line (&visible_line[last_lmargin], 1195 1198 &invisible_line[lmargin], 1196 1199 0, … … 1198 1201 _rl_screenwidth + (lmargin ? 0 : wrap_offset), 1199 1202 0); 1200 1203 1204 if ((MB_CUR_MAX > 1 && rl_byte_oriented == 0) && 1205 cpos_adjusted == 0 && 1206 _rl_last_c_pos != o_cpos && 1207 _rl_last_c_pos > wrap_offset && 1208 o_cpos < prompt_last_invisible) 1209 _rl_last_c_pos -= prompt_invis_chars_first_line; /* XXX - was wrap_offset */ 1210 1201 1211 /* If the visible new line is shorter than the old, but the number 1202 1212 of invisible characters is greater, and we are at the end of 1203 1213 the new line, we need to clear to eol. */ … … 1236 1246 visible_wrap_offset = wrap_offset; 1237 1247 } 1238 1248 1249 RL_UNSETSTATE (RL_STATE_REDISPLAYING); 1239 1250 _rl_release_sigint (); 1240 1251 } 1241 1252 … … 1772 1783 space_to_eol will insert too many spaces. XXX - maybe we should 1773 1784 adjust col_lendiff based on the difference between _rl_last_c_pos 1774 1785 and _rl_screenwidth */ 1775 if (col_lendiff && ( _rl_last_c_pos < _rl_screenwidth))1786 if (col_lendiff && ((MB_CUR_MAX == 1 || rl_byte_oriented) || (_rl_last_c_pos < _rl_screenwidth))) 1776 1787 #endif 1777 1788 { 1778 1789 if (_rl_term_autowrap && current_line < inv_botlin) … … 1892 1903 1893 1904 woff = WRAP_OFFSET (_rl_last_v_pos, wrap_offset); 1894 1905 cpos = _rl_last_c_pos; 1906 1907 if (cpos == 0 && cpos == new) 1908 return; 1909 1895 1910 #if defined (HANDLE_MULTIBYTE) 1896 1911 /* If we have multibyte characters, NEW is indexed by the buffer point in 1897 1912 a multibyte string, but _rl_last_c_pos is the display position. In … … 1905 1920 prompt string, since they're both buffer indices and DPOS is a 1906 1921 desired display position. */ 1907 1922 if ((new > prompt_last_invisible) || /* XXX - don't use woff here */ 1908 (prompt_physical_chars > _rl_screenwidth &&1923 (prompt_physical_chars >= _rl_screenwidth && 1909 1924 _rl_last_v_pos == prompt_last_screen_line && 1910 wrap_offset >= woff && 1925 wrap_offset >= woff && dpos >= woff && 1911 1926 new > (prompt_last_invisible-(_rl_screenwidth*_rl_last_v_pos)-wrap_offset))) 1912 1927 /* XXX last comparison might need to be >= */ 1913 1928 { -
readline-6.0
diff -Naur readline-6.0.orig/patchlevel readline-6.0/patchlevel
old new 1 1 # Do not edit -- exists only for use by patch 2 2 3 0 3 3 -
readline-6.0
diff -Naur readline-6.0.orig/readline.h readline-6.0/readline.h
old new 814 814 #define RL_STATE_VIMOTION 0x100000 /* reading vi motion arg */ 815 815 #define RL_STATE_MULTIKEY 0x200000 /* reading multiple-key command */ 816 816 #define RL_STATE_VICMDONCE 0x400000 /* entered vi command mode at least once */ 817 #define RL_STATE_REDISPLAYING 0x800000 /* updating terminal display */ 817 818 818 #define RL_STATE_DONE 0x 800000 /* done; accepted line */819 #define RL_STATE_DONE 0x1000000 /* done; accepted line */ 819 820 820 821 #define RL_SETSTATE(x) (rl_readline_state |= (x)) 821 822 #define RL_UNSETSTATE(x) (rl_readline_state &= ~(x)) -
readline-6.0
diff -Naur readline-6.0.orig/terminal.c readline-6.0/terminal.c
old new 355 355 _rl_get_screen_size (fileno (rl_instream), 1); 356 356 if (CUSTOM_REDISPLAY_FUNC ()) 357 357 rl_forced_update_display (); 358 else 358 else if (RL_ISSTATE(RL_STATE_REDISPLAYING) == 0) 359 359 _rl_redisplay_after_sigwinch (); 360 360 } 361 361 }
Note:
See TracBrowser
for help on using the repository browser.