I seldom use gvim on Linux and even less often use :sh from gvim, so
I didn't notice this until recently when projects and my workflow
changed.

When :sh is used in gvim to launch a shell, the backspace and ^U no
longer work.  Instead of backspacing or clearing the line, each just
puts gibberish in the line.  I discovered that each was broken by
a different commit, so I'm reporting them separately.

Steps to reproduce

 1. $ vim -g -N -u NONE -i NONE
 2. :sh
 3. Type a bunch of printing characters, it doesn't seem to matter
    what.  For example:

        $ hello

 4. Type the backspace key.
 5. The 'o' is replaced by a 'b' and the cursor remains at the end
    of the line.

Expected behavior

    The cursor should move one space to the left, erasing the 'o'.

Version of Vim

    9.0.651

Environment

 Operating system:  Ubuntu 20.04.5
 Terminal: Not applicable, but gvim launched from an xterm
 Value of $TERM:
    In the original xterm: xterm-256color
    In the :sh shell: dumb
 Shell: bash
 Desktop: xfce4
    Behavior is the same in GNOME on Ubuntu 22.04.

Last output from 'git bisect':

    $ git bisect bad
    f4140488c72cad4dbf5449dba099cfa7de7bbb22 is the first bad commit
    commit f4140488c72cad4dbf5449dba099cfa7de7bbb22
    Author: Bram Moolenaar <[email protected]>
    Date:   Sat Feb 15 23:06:45 2020 +0100

        patch 8.2.0260: several lines of code are duplicated

        Problem:    Several lines of code are duplicated.
        Solution:   Move duplicated code to a function. (Yegappan Lakshmanan,
                    closes #5330)

     src/option.c       | 136 
++++++++++++++++++++++++-----------------------------
     src/os_unix.c      |  24 +---------
     src/os_win32.c     |  25 +---------
     src/proto/term.pro |   1 +
     src/quickfix.c     |  24 +++-------
     src/regexp.c       |  22 +++++++++
     src/regexp_bt.c    |  12 +----
     src/regexp_nfa.c   |  12 +----
     src/term.c         |  31 ++++++++++++
     src/version.c      |   2 +
     10 files changed, 128 insertions(+), 161 deletions(-)

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221003183643.GA24999%40phoenix.

Raspunde prin e-mail lui