File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ term.cursor_savepos() {
150
150
else
151
151
REPLY=$' \e [s'
152
152
fi
153
- [ " $flag_print " = ' yes ' ] && printf ' %s\n ' " $REPLY "
153
+ term.private_util_replyprint
154
154
}
155
155
156
156
# @description Restores cursor to the last saved position
@@ -168,7 +168,7 @@ term.cursor_restorepos() {
168
168
else
169
169
REPLY=$' \e [u'
170
170
fi
171
- [ " $flag_print " = ' yes ' ] && printf ' %s\n ' " $REPLY "
171
+ term.private_util_replyprint
172
172
}
173
173
174
174
# FIXME: docs
Original file line number Diff line number Diff line change @@ -50,16 +50,16 @@ term.private_util_set_reply() {
50
50
local value=" $1 "
51
51
52
52
REPLY=" $value "
53
- if [ " $flag_print " = ' yes' ]; then
54
- printf ' %s' " $REPLY "
55
- elif [ " $flag_print " = ' yes-newline' ]; then
56
- printf ' %s\n' " $REPLY "
57
- fi
53
+ term.private_util_replyprint
58
54
}
59
55
60
56
term.private_util_set_reply2 () {
61
57
# shellcheck disable=SC2059
62
58
printf -v REPLY " $@ "
59
+ term.private_util_replyprint
60
+ }
61
+
62
+ term.private_util_replyprint () {
63
63
if [ " $flag_print " = ' yes' ]; then
64
64
printf ' %s' " $REPLY "
65
65
elif [ " $flag_print " = ' yes-newline' ]; then
You can’t perform that action at this time.
0 commit comments