Article View: gnu.bash.bug
Article #836Readline bug
From: bothner
Date: Mon, 15 Jan 1990 23:27
Date: Mon, 15 Jan 1990 23:27
29 lines
1294 bytes
1294 bytes
Just in case this bug has not already been reported ...
The start_insert function in readline/readline.c
is broken for terminal descriptors that support
both im (insert mode) and IC/ic (insert characters)
(such as Xterm) - the function inserts extra
spaces AS WELL as entering insert mode.
This trivial fix seems to work.
--Per Bothner
*** readline.c~ Sat Nov 4 07:42:01 1989
--- readline.c Mon Jan 15 14:20:53 1990
***************
*** 1892,1899 ****
{
if (term_im && *term_im)
tputs (term_im, 1, output_character_function);
!
! if (term_IC && *term_IC &&
(count > 1 || !term_ic || !*term_ic))
{
char *tgoto (), *buffer;
--- 1892,1898 ----
{
if (term_im && *term_im)
tputs (term_im, 1, output_character_function);
! else if (term_IC && *term_IC &&
(count > 1 || !term_ic || !*term_ic))
{
char *tgoto (), *buffer;
Technical Details
Message-ID:
<9001152327.AA11551@sevenlayer.cs.wisc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!CS.WISC.EDU!bothnerShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!CS.WISC.EDU!bothner From: bothner@CS.WISC.EDU Newsgroups: gnu.bash.bug Subject: Readline bug Message-ID: <9001152327.AA11551@sevenlayer.cs.wisc.edu> Date: 15 Jan 90 23:27:32 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 29