Bug 164231 - Auto-Complete Disabled when typing new key in \ref{}
Summary: Auto-Complete Disabled when typing new key in \ref{}
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.0.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-16 17:14 UTC by Paul Weaver
Modified: 2008-11-21 00:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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