testsuite: Set correct COMP_POINT value in test.

This commit is contained in:
Igor Murzov 2011-11-09 18:14:59 +03:00
parent e4cdcca08e
commit 4d76b721f4

View File

@ -116,7 +116,7 @@ sync_after_int
set test {a\ b a\ b| should return a\ b}; # | = cursor position set test {a\ b a\ b| should return a\ b}; # | = cursor position
set cmd {COMP_WORDS=('a\ b' 'a\ b'); COMP_CWORD=1; COMP_LINE='a\ b a\ b'; COMP_POINT=11; _get_comp_words_by_ref cur prev; echo "$cur $prev"} set cmd {COMP_WORDS=('a\ b' 'a\ b'); COMP_CWORD=1; COMP_LINE='a\ b a\ b'; COMP_POINT=9; _get_comp_words_by_ref cur prev; echo "$cur $prev"}
assert_bash_list {"a\\ b a\\ b"} $cmd $test assert_bash_list {"a\\ b a\\ b"} $cmd $test