diff options
| author | Teddy Wing | 2021-08-22 20:40:42 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2021-08-22 20:40:42 +0200 | 
| commit | a37e4cc946d2948d19040722fc5e6ea2f6e3bc17 (patch) | |
| tree | 2175430307759c37237b4aeb6860431ea182c2d0 /incdec | |
| parent | 818ed4509a8381104e1914f00ea7898ea1cb3e59 (diff) | |
| download | readline-incdec-a37e4cc946d2948d19040722fc5e6ea2f6e3bc17.tar.bz2 | |
incdec: Idea for point moving when changing from positive to negative
If we change between negative and positive numbers, point moves:
    $ test 12 0
               ^
    _decrement_
    $ test 12 -1
               ^
I think point should instead be
    $ test 12 -1
                ^
Not sure that we should be moving point when changing from negative to
positive, though.
Diffstat (limited to 'incdec')
| -rw-r--r-- | incdec | 2 | 
1 files changed, 2 insertions, 0 deletions
| @@ -123,6 +123,8 @@ sub incdec {  	READLINE_LINE="$line"  	# TODO: If point was at the end, put it at the end again. The length of he line may have changed. + +	# TODO 2021.08.22: If new READLINE_LINE is longer, move point to the right. If shorter, move it to the left.  }  function __readline_incdec_increment { | 
