diff options
| author | Teddy Wing | 2021-08-08 20:57:05 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2021-08-08 21:06:50 +0200 | 
| commit | 366fa08af2817327d4cf17a3a1a73af4d2291893 (patch) | |
| tree | 5955cb5459e8f6025a75b7fe57675d718610c9a1 | |
| parent | ccfbd51f1d4b39e5778fed6facf15c7815b2b6aa (diff) | |
| download | readline-incdec-366fa08af2817327d4cf17a3a1a73af4d2291893.tar.bz2 | |
100-increment-decrement: Need to handle cursor within for subsequent #s
Currently, the 'cursor within number' handling only works when the
cursor is inside the first number. It needs to work for any number in
the line.
| -rw-r--r-- | t/100-increment-decrement.t | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/t/100-increment-decrement.t b/t/100-increment-decrement.t index 5d7287a..9d5d0ad 100644 --- a/t/100-increment-decrement.t +++ b/t/100-increment-decrement.t @@ -37,4 +37,10 @@ is(  	'increments the second integer with point at position 7'  ); +is( +	incdec::incdec('test 12 19 555', 9), +	'test 12 20 555', +	'increments the second double-digit integer with point at position 9' +); +  done_testing; | 
