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).
Detect that mc was launched from alternatives symlink This patch in needed to mcedit to start if run as 'editor' symlink from alternatives. . As of 2012-05-01 upstream believe this should be customised per distribution as therefore refused to commit.