Merge lp:~ryan.wooden/ultisnips/ultisnips-fixes into lp:~sirver/ultisnips/trunk
Proposed by
Ryan Wooden
Status: | Merged |
---|---|
Merged at revision: | 288 |
Proposed branch: | lp:~ryan.wooden/ultisnips/ultisnips-fixes |
Merge into: | lp:~sirver/ultisnips/trunk |
Diff against target: |
174 lines (+71/-15) 3 files modified
plugin/UltiSnips/Util.py (+15/-0) plugin/UltiSnips/__init__.py (+18/-14) test.py (+38/-1) |
To merge this branch: | bzr merge lp:~ryan.wooden/ultisnips/ultisnips-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Pending | ||
Review via email: mp+59684@code.launchpad.net |
Description of the change
Applied patch from allait with a fix for bug #774911, but reordered the snippets before returning them so that they arrive in the order expected in the tests.
Added tests and my own fix for bug #774917. I added a function I used in one of my own little plugins to safely convert Python dicts, lists, and strings to be returned to vim. I replaced the _vim_quote() function with mine, and quoted the list returned in _ask_snippets().
All tests currently pass.
To post a comment you must log in.
I added tests and fix for bug #774923. The problem was caused by the fact that the mapping for <BS> takes vim out of SELECT mode, but the method being called tries to press <BS> anyway. To solve it, the method instead presses "gvc" to reselect the region and replace it, which simulates what would happen normally when pressing BS in select mode.