vimrc
This commit is contained in:
+6
-4
@@ -239,7 +239,9 @@ function on_error {
|
||||
# add the funcname hint message from backward
|
||||
local funcname hint_for_next=false
|
||||
for ((i = 0; i < ${#error_funcname[@]}; i++)); do
|
||||
is_true "$hint_for_next" && error_funcname[$i]+=' (hint: prefer source than child process)' && hint_for_next=false
|
||||
is_true "$hint_for_next" &&
|
||||
error_funcname[i]+=' (hint: prefer source than child process)' &&
|
||||
hint_for_next=false
|
||||
funcname="${error_funcname[$i]}"
|
||||
[[ "$funcname" == '<main>' ]] && hint_for_next=true || true
|
||||
done
|
||||
@@ -319,7 +321,7 @@ function dump_stderr {
|
||||
miaou_debug "<hide_latest_miaou_error line=${last_error} count=$tmp_error_count/>"
|
||||
unset 'tmp_error[-1]'
|
||||
if [[ $tmp_error_count == 0 ]]; then
|
||||
# TODO: grab last_stdout and test no carriage_return, cf: ../test/stub/tee_last_line.bash
|
||||
# IDEA: grab last_stdout and test no carriage_return, cf: ../test/stub/tee_last_line.bash
|
||||
miaou_debug "<prevent_stdout_no_carriage_return />"
|
||||
printf "\r"
|
||||
fi
|
||||
@@ -408,9 +410,9 @@ function dump_stacktrace {
|
||||
|
||||
if [[ -v hint ]]; then
|
||||
tty_ansi FG_YELLOW
|
||||
printf "$hint"
|
||||
builtin echo -n "$hint"
|
||||
tty_ansi RESET
|
||||
printf ')'
|
||||
builtin echo -n ')'
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user