[vim/vim] shell command-line not printed when terminal buffer displayed in regular window in same tabpage (Issue #9341)

4 views
Skip to first unread message

lacygoill

unread,
Dec 13, 2021, 4:12:50 AM12/13/21
to vim/vim, Subscribed

Steps to reproduce

Run this shell command:

vim -Nu NONE -S <(cat <<'EOF'
    vim9script
    var bufnr: number = term_start(&shell, {hidden: true})
    execute 'buffer ' .. bufnr
    popup_create(bufnr, {
        line: &lines / 2,
        minwidth: &columns / 2,
        border: [],
    })
    term_sendkeys(bufnr, "echo 'test'")
EOF
)

echo 'test' is printed on the shell command-line.

Expected behavior

Nothing is printed on the shell command-line.

Version of Vim

8.2 Included patches: 1-3793

Environment

Operating system: Ubuntu 20.04.3 LTS
Terminal: xterm
Value of $TERM: xterm-256color
Shell: zsh 5.8

Screenshot

gif

Additional Context

The issue does not seem to be caused by the shell. I can still reproduce when replacing &shell with /usr/bin/bash --norc --noprofile:

vim9script
var bufnr: number = term_start('/usr/bin/bash --norc --noprofile', {hidden: true})
execute 'buffer ' .. bufnr
popup_create(bufnr, {
    line: &lines / 2,
    minwidth: &columns / 2,
    border: [],
})
term_sendkeys(bufnr, "echo 'test'")


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

lacygoill

unread,
Dec 13, 2021, 4:17:25 AM12/13/21
to vim/vim, Subscribed

Nothing is printed on the shell command-line.

I meant: nothing is printed on the shell command-line of the terminal buffer which is displayed in the popup window. No such issue in the regular window.

lacygoill

unread,
Dec 13, 2021, 4:54:10 AM12/13/21
to vim/vim, Subscribed

Sorry for the original issue title which was wrong. I had to edit it twice.

Bram Moolenaar

unread,
Dec 13, 2021, 4:59:58 PM12/13/21
to vim/vim, Subscribed

Closed #9341 via 3194e5b.

Reply all
Reply to author
Forward
0 new messages