diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:13 +0000 |
commit | b53c174e5d2eba47d82b05cb5787b183a0aadf84 (patch) | |
tree | d11ab04473fd36be6989c8a494a245fce8a80cbb /debian/patches/2987.patch | |
parent | Adding upstream version 3:4.8.29. (diff) | |
download | mc-debian.tar.xz mc-debian.zip |
Adding debian version 3:4.8.29-2.debian/3%4.8.29-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/2987.patch')
-rw-r--r-- | debian/patches/2987.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/2987.patch b/debian/patches/2987.patch new file mode 100644 index 0000000..2e35ba0 --- /dev/null +++ b/debian/patches/2987.patch @@ -0,0 +1,25 @@ +Last-Update: 2017-06-29 +Forwarded: https://www.midnight-commander.org/ticket/2110#comment:11 +Author: Dmitry Borisyuk" <q1werty@i.com.ua> +Reviewed-by: Dmitry Smirnov <onlyjob@member.fsf.org> +Bug-MC: https://www.midnight-commander.org/ticket/2987 +Bug-MC: https://www.midnight-commander.org/ticket/2110 +Bug-Debian: http://bugs.debian.org/703741 +Description: clear unfinished text before 'cd' to avoid accidental execution + send C-k C-u to the shell before sending 'cd' command to erase previous + unfinished text (C-k is needed for bash if the cursor is in the middle of + the line). + +--- a/src/subshell/common.c ++++ b/src/subshell/common.c +@@ -1719,9 +1719,9 @@ + } + } + /* The initial space keeps this out of the command history (in bash + because we set "HISTCONTROL=ignorespace") */ +- write_all (mc_global.tty.subshell_pty, " cd ", 4); ++ write_all (mc_global.tty.subshell_pty, "\013\025 cd ", 6); + + if (vpath != NULL) + { + const char *translate; |