Steps to reproduce: 1. In a .tex file, define a label with '\label{eq: Faraday}'. 2. Save the document. 3. Type '\ref{eq: F' and press 'tab' Observed result: The reference is completed as '\ref{eq: Feq: Faraday'. Expected result: Kile should take into account the already typed letters while tab-completing.
This only happens if you press tab before the 'suggestion box' appears for completion. If you wait for the suggestion box to appear, and then press tab, the expected behaviour occurs.
Does the same happen in Kate? There is also a setting 'Remove tail on complete' in Editor settings, which might affect this behaviour.
(In reply to Christoph Feck from comment #2) > Does the same happen in Kate? There is also a setting 'Remove tail on > complete' in Editor settings, which might affect this behaviour. I can reproduce this with the autocomplete options in 'Editor > Editing > Autocompletion' completely disabled, and only 'Kile > Complete > Auto completion for LaTeX markup' enabled. I can't reproduce this in Kate. If I disable the 'autocompletion for LaTeX markup' option leaving the other autocomplete stuff enabled, I still get suggestions (I assume Kile picks them up from words previously used in the document) and tab-completing with them works as expected.
I'm seeing this behavior as well, except the expected behavior does not occur if I wait for the suggestion box. This bug happens with command autocompletion, too; if I type "\beg" and press tab, I get "\beg\begin" inserted into the editor.