From a37e4cc946d2948d19040722fc5e6ea2f6e3bc17 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 22 Aug 2021 20:40:42 +0200 Subject: 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. --- incdec | 2 ++ 1 file changed, 2 insertions(+) (limited to 'incdec') diff --git a/incdec b/incdec index 2a99d4f..fe4670b 100644 --- a/incdec +++ b/incdec @@ -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 { -- cgit v1.2.3