[asterisk-bugs] [Asterisk 0014373]: [patch] Avoid destroying the CLI line when moving the cursor backward and trying to autocomplete.

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Mar 25 09:12:57 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14373 
====================================================================== 
Reported By:                eliel
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   14373
Category:                   Core/General
Reproducibility:            have not tried
Severity:                   tweak
Priority:                   normal
Status:                     ready for review
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 172517 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-30 13:10 CST
Last Modified:              2009-03-25 09:12 CDT
====================================================================== 
Summary:                    [patch] Avoid destroying the CLI line when moving
the cursor backward and trying to autocomplete.
Description: 
When moving the cursor backward and pressing TAB to autocomplete a NULL is
put in the line and we are loosing what we have already wrote after the
actual cursor position.
core show channel<CURSOR>'\0' pepe
If moving the cursor where <CURSOR> is and pressing tab, the
autocompletion mechanism autocomplete the line but puts a NULL and 'pepe'
is no more part of the command line.
====================================================================== 

---------------------------------------------------------------------- 
 (0102161) svnbot (reporter) - 2009-03-25 09:12
 http://bugs.digium.com/view.php?id=14373#c102161 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 184188

U   branches/1.4/main/asterisk.c

------------------------------------------------------------------------
r184188 | eliel | 2009-03-25 09:12:55 -0500 (Wed, 25 Mar 2009) | 13 lines

Avoid destroying the CLI line when moving the cursor backward and trying
to autocomplete.

When moving the cursor backward and pressing TAB to autocomplete, a NULL
is put
in the line and we are loosing what we have already wrote after the actual
cursor position.

(closes issue http://bugs.digium.com/view.php?id=14373)
Reported by: eliel
Patches:
      asterisk.c.patch uploaded by eliel (license 64)
      Tested by: lmadsen


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=184188 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-25 09:12 svnbot         Note Added: 0102161                          
======================================================================




More information about the asterisk-bugs mailing list