Ticket #3639: 0001-Ticket-3639-Fix-window-resizing-when-panels-are-hidd.patch

File 0001-Ticket-3639-Fix-window-resizing-when-panels-are-hidd.patch, 952 bytes (added by yurikhan, 3 years ago)
  • src/subshell/common.c

    From 86404601a432e7bb570c7a6739e122e241a0502d Mon Sep 17 00:00:00 2001
    From: Yuri Khan <yurivkhan@gmail.com>
    Date: Tue, 3 May 2016 11:51:40 +0600
    Subject: [PATCH] Ticket #3639: Fix window resizing when panels are hidden.
    
    Calling `tty_change_screen_size` causes a switch to the alternate screen.
    ---
     src/subshell/common.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/subshell/common.c b/src/subshell/common.c
    index 0be0127..e0ce236 100644
    a b feed_subshell (int how, int fail_on_error) 
    531531            /* Despite using SA_RESTART, we still have to check for this */ 
    532532            if (errno == EINTR) 
    533533            { 
    534                 if (mc_global.tty.winch_flag != 0) 
     534                if (how == QUIETLY && mc_global.tty.winch_flag != 0) 
    535535                    tty_change_screen_size (); 
    536536 
    537537                continue;       /* try all over again */