Ticket #4566 (closed defect: worksforme)

Opened 3 months ago

Last modified 3 months ago

command line duplication ( with zsh )

Reported by: newbie-02 Owned by:
Priority: major Milestone:
Component: mc-core Version: master
Keywords: UI, command line, unwanted changes Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

hi,

encountered a funny thing which might cause problems if unaware.
working in midnight commander,
panels off to edit the command line,
cursor placed not! at then end of command but somewhere in,
e.g. 'test <cursor>test',
switching panels on and off by ctrl-O doubles the part behind the cursor,
e.g. 'test <cursor>testtest', and subsequent 'test <cursor>testtesttesttest' and so on.

Can't say if a prolem of midnight commander, shell ( zsh ), or shell history or 'zsh-autosuggestions', perhaps someone can check in other environments or dig down.

Reported as I think it might cause problems when the extension is meaningful as command, thus executed, but wasn't intended.

Change History

comment:1 Changed 3 months ago by zaytsev

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone Future Releases deleted

Probably your zsh plugins or settings somehow interfere with persistent command prompt in mc. It's very fragile, because there is no API that shells are offering for embedding, and if you want to use it, you should be careful about prompt and plugins. On stock zsh without plugins I can't reproduce your finding. Feel free to report back if you track down exact cause in your setup.

Note: See TracTickets for help on using tickets.