Better cursor position after input syntax error
This commit is contained in:
parent
e79d5ea2c0
commit
71d2179ea2
3 changed files with 29 additions and 16 deletions
19
t/prompt.t
19
t/prompt.t
|
@ -72,13 +72,20 @@ are '"abort"', [qw/abort/];
|
|||
|
||||
are "\\", 0;
|
||||
are "'foo", 0;
|
||||
are "foo'", 0;
|
||||
are "foo'bar", 0;
|
||||
|
||||
are "bar 'foo", 3;
|
||||
are "bar foo'", 3;
|
||||
are "bar foo'bar", 3;
|
||||
# 0123
|
||||
are "foo'", 3;
|
||||
# 0123
|
||||
are "foo'bar", 3;
|
||||
|
||||
are "foo 'bar'\"baz\"", 3;
|
||||
# 01234
|
||||
are "bar 'foo", 4;
|
||||
# 01234567
|
||||
are "bar foo'", 7;
|
||||
# 01234567
|
||||
are "bar foo'bar", 7;
|
||||
|
||||
# 0123456789
|
||||
are "foo 'bar'\"baz\"", 9;
|
||||
|
||||
done_testing;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue