jumping during completion popup-menu truncates completion

Bug #598903 reported by Chris Chambers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UltiSnips
Fix Released
Medium
Chris Chambers

Bug Description

This causes the completed text to be truncated when you jump to the next tabstop. E.g.

2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
[GCC 4.2.1 (Apple Inc. build 5646)]-- INSERT --

------------------- SNIP -------------------
# Here's an example of what I'm talking about:
snippet test
$1 $2
endsnippet
------------------- SNAP -------------------

Input:
test<tab>ex<ctrl-p><ctrl-j>foo ->

Expected:
example foo

Actual:
ex foo

Other remarks: Best snippets plugin ever.

Related branches

Revision history for this message
SirVer (sirver) wrote :

I have frankly no idea how to fix this. Vim doesn't allow for such deep interactions. I am very open for suggestions.

And thanks for the other remark. I think so too ;)

Changed in ultisnips:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Chris Chambers (chrischambers) wrote :

I'm close to a fix now. Essentially, the problem is that the CursorMovedI autocommand is not triggered while the popup menu is visible.

Revision history for this message
Chris Chambers (chrischambers) wrote :

Hmm... I don't understand the implementation quite well enough to know why this isn't working yet, but I thought I'd attach my patch so you can give it a once over: it might help.

Revision history for this message
Chris Chambers (chrischambers) wrote :

-- doh: and excuse the unnecessary feedkey/mode lines.

Changed in ultisnips:
assignee: nobody → Chris Chambers (chrischambers)
Revision history for this message
Chris Chambers (chrischambers) wrote :
summary: - tabstop endings don't take into account vim-completion
+ jumping during completion popup-menu truncates completion
Revision history for this message
SirVer (sirver) wrote :

Awesome patch chris! thanks for your work. Applied in r202.

Changed in ultisnips:
status: Confirmed → Fix Committed
Revision history for this message
SirVer (sirver) wrote :

Fix released in version 1.2.

Changed in ultisnips:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.