Menu

#227 Code templates don't work after a TAB

v1.2.2
closed-fixed
None
5
2010-04-02
2008-12-06
Xavier
No

A tiny bug that can be pretty annoying: code tempates (like "item" ctrl+space) do not work when the key word (item in the example) follows a TAB character.

To reproduce it:
1. Create new Latex project, with the default project template
2. On a empty line, type 'TAB', 'i', 't', 'e', 'm', Ctrl+Space'

-- Expected behavior:
Replace the keyword 'item' with the code template:
'\begin{itemize}
\item ${cursor}
\end{itemize}'

-- Actual behavior:
Text is not modified, and an error message is produced:
'No completions available'

This bug occurs with any code template (built-in or user defined). If the last character before the template keyword is a 'Space', it works, if it is a 'TAB', it bugs.

Maybe a \s to be replaced in a \S in a regular expression ?

Thanks anyway for this excellent plugin, keep going.

Discussion

  • Boris von Loesch

    • assigned_to: nobody --> borisvl
    • status: open --> open-fixed
     
  • Boris von Loesch

    The bug is fixed and the fix was checked into cvs. Remark, that
    it could last one day until the anonymous cvs is also updated.

     
  • Boris von Loesch

    Fixed in latest release, please update your TeXlipse.

     
  • Boris von Loesch

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.