aboutsummaryrefslogtreecommitdiffstats
path: root/incdec
diff options
context:
space:
mode:
authorTeddy Wing2021-08-22 20:40:42 +0200
committerTeddy Wing2021-08-22 20:40:42 +0200
commita37e4cc946d2948d19040722fc5e6ea2f6e3bc17 (patch)
tree2175430307759c37237b4aeb6860431ea182c2d0 /incdec
parent818ed4509a8381104e1914f00ea7898ea1cb3e59 (diff)
downloadreadline-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--incdec2
1 files changed, 2 insertions, 0 deletions
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 {