Fixup update of command line after window resize.
commit86c8378d662c6e4ef65d6ef4c1b911fa9a286190
authorAndrew Borodin <aborodin@vmail.ru>
Wed, 30 Nov 2011 10:28:05 +0000 (30 13:28 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Wed, 7 Dec 2011 13:02:20 +0000 (7 16:02 +0300)
tree524dd377bb638da52a3a786d26d456a3f45d552a
parentd99feea391e3b3a65daea263ef5db0626750d0c5
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