Fixup update of command line after window resize.
commit0194c42d9ae32e8021e50be5c3188f89a3a34492
authorAndrew Borodin <aborodin@vmail.ru>
Wed, 30 Nov 2011 10:28:05 +0000 (30 13:28 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 11 Dec 2011 14:36:14 +0000 (11 17:36 +0300)
tree8b840b069d18809d7c5c0629ed71f40c7292419b
parentdb703b88cd0043d4833e09597be2d01c64a1cd46
Fixup update of command line after window resize.

The bug only occurs with subshell enabled.

When resizing the window while in the viewer, the subshell resizes
itself and hence prints its prompt again. This is captured and processed
by mc.

src/filemanager/layout.c:setup_panels() is executed and recalculates
properties of the panel, but for some reason this time mc_prompt does
contain all the invisible characters, they are not stripped off, hence
size calculation goes wrong.

Thanks Egmont Koblinger for the detailed description of the problem and
the idea of fix.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/execute.c
src/filemanager/command.c
src/filemanager/layout.c
src/filemanager/layout.h
src/main.c
src/main.h