aboutsummaryrefslogtreecommitdiffstats
path: root/incdec.bash
diff options
context:
space:
mode:
authorTeddy Wing2021-08-29 00:51:44 +0200
committerTeddy Wing2021-08-29 00:51:44 +0200
commit685d35ca5ea0a976c670cd533533b03a68951c2d (patch)
treecc1d73ee05daf4b905589296b6b1553529de6c0e /incdec.bash
parent40289847cae91a317a660d38ec4c6a48164f58f6 (diff)
downloadreadline-incdec-685d35ca5ea0a976c670cd533533b03a68951c2d.tar.bz2
incdec.bash: Remove start position debug prints and TODO
This works now.
Diffstat (limited to 'incdec.bash')
-rw-r--r--incdec.bash3
1 files changed, 0 insertions, 3 deletions
diff --git a/incdec.bash b/incdec.bash
index 4b621f7..338afae 100644
--- a/incdec.bash
+++ b/incdec.bash
@@ -102,7 +102,6 @@ function __readline_incdec_increment {
local new_line_length="${#READLINE_LINE}"
local start_position="${result%#*}"
- echo "$start_position .. $READLINE_POINT"
# If a negative sign was removed, keep point where it was.
if [ \
@@ -126,9 +125,7 @@ function __readline_incdec_decrement {
local new_line_length="${#READLINE_LINE}"
local start_position="${result%#*}"
- echo "$start_position .. $READLINE_POINT"
- # TODO: Point should only move when it's over the number. No, actually when it's >= the start of the number.
# If a negative sign was added, keep point where it was.
if [ \
"$old_line_length" -lt "$new_line_length" \