aboutsummaryrefslogtreecommitdiffstats
path: root/docs/README.md
diff options
context:
space:
mode:
authorKoichi Murase <myoga.murase@gmail.com>2023-12-29 04:34:34 +0900
committerGitHub <noreply@github.com>2023-12-28 19:34:34 +0000
commitbe1f6fd5ca718f725a840f764f387ccf4acf8a9f (patch)
tree34e7a6b68bc058e3fea0f2f58d84abb6868b8998 /docs/README.md
parentfeat: Add TLS to atuin-server (#1457) (diff)
downloadatuin-be1f6fd5ca718f725a840f764f387ccf4acf8a9f.zip
fix(bash): fix loss of the last output line with enter_accept (#1463)
With a single-line prompt, the last line of the output of the previous command is overwritten by the prompt on the enter_accept. In this situation, `tput cuu` receives 0 as the argument, but `tput cuu 0` emits the control sequence `\e[0A`, which moves the cursor above by one line unexpectedly. This is because the parameter 0 for CUU means the default value, 1. In this patch, to avoid moving the cursor when the prompt offset is 0, we check the offset value before running `tput cuu`.
Diffstat (limited to 'docs/README.md')
0 files changed, 0 insertions, 0 deletions