Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

when using <c-x><c-t> causes error when there isnt an text #52

Open
Gavinok opened this issue Nov 30, 2019 · 1 comment
Open

when using <c-x><c-t> causes error when there isnt an text #52

Gavinok opened this issue Nov 30, 2019 · 1 comment

Comments

@Gavinok
Copy link

Gavinok commented Nov 30, 2019

When I use the completion mapping when there is no text before it for example a blank line I get this error.

|| Error detected while processing function
|| minisnip#complete[40]
|| E684: list index out of range: 0
|| Error detected while processing function
|| minisnip#complete[40]
|| E116: Invalid arguments for function add

works as expencted when i have typed before using completion. eg if is type f and call completion it will complete with for. as seen in the error it looks like its coming from the call to add.

@Gavinok
Copy link
Author

Gavinok commented Nov 30, 2019

A temperary solution could be to add this to the start of the completion

if len(l:line) < 1
	return ''
endif

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant