Bug 164231

Summary: Auto-Complete Disabled when typing new key in \ref{}
Product: [Applications] kile Reporter: Paul Weaver <p.j.weaver>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.0.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Paul Weaver 2008-06-16 17:14:41 UTC
Version:           2.0.1 (using 3.5.9-5.fc8 Fedora, Fedora release 8 (Werewolf))
Compiler:          Target: i386-redhat-linux
OS:                Linux (i686) release 2.6.25.4-10.fc8

If I type "\ref{" in my latex document, I get a list of the keys from the \label macros that Kile has found. If I type a key that is NOT listed in this list, auto-complete is disabled in the document (I get not further pop ups).

To reproduce:

- Edit a document with some labels
- Type "\ref{"
- A keylist of some labels is produced
- Type a different keyname to ones in the list
- close the braces "}"

auto-complete now appears to be disabled, although auto-addition of the closing environment line (\end{whatever}) still appears to work.
Comment 1 Thomas Braun 2008-11-21 00:09:34 UTC
SVN commit 887046 by tbraun:

BUG: 164231
BUG: 174003

Again some codecompletion fun :)
This bug was hidden quite deeply but due to the help of  
Russell W. Howell <howell@*> and one one my flatmates the error could be spotted and solved.
Thanks!

This patch should be tested some more, although it didn't show up any drawbacks at our testing.

the patch:
the error is that if m_ref is true but the m_inprogress false the internal state was inconsistent and therefore the
completion list didn't show up anymore after inserting letters. This is fixed now.

Happy Testing!


 M  +11 -1     codecompletion.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=887046