Added tests and a fix for bug #774923.
This commit is contained in:
parent
cd375f976c
commit
4e145d7f79
@ -751,7 +751,9 @@ class SnippetManager(object):
|
||||
feedkeys(r"i")
|
||||
self._chars_entered('')
|
||||
else:
|
||||
feedkeys(r"\<BS>")
|
||||
# We can't just pass <BS> through, because we took vim
|
||||
# out of SELECT mode, so instead we reselect and replace
|
||||
feedkeys(r"gvc")
|
||||
|
||||
@err_to_scratch_buffer
|
||||
def cursor_moved(self):
|
||||
|
11
test.py
11
test.py
@ -1882,6 +1882,17 @@ class Snippet_With_DoubleQuote_List(_VimTest):
|
||||
keys = "te" + LS + "1\n"
|
||||
wanted = "Expand me\"!"
|
||||
|
||||
# Test for Bug #774917
|
||||
class Backspace_TabStop_Zero(_VimTest):
|
||||
snippets = ("test", "A${1:C} ${0:DDD}", "This is Case 1")
|
||||
keys = "test" + EX + "A" + JF + BS + "BBB"
|
||||
wanted = "AA BBB"
|
||||
|
||||
class Backspace_TabStop_NotZero(_VimTest):
|
||||
snippets = ("test", "A${1:C} ${2:DDD}", "This is Case 1")
|
||||
keys = "test" + EX + "A" + JF + BS + "BBB"
|
||||
wanted = "AA BBB"
|
||||
|
||||
######################
|
||||
# SELECTING MULTIPLE #
|
||||
######################
|
||||
|
Loading…
x
Reference in New Issue
Block a user