Auto merge of #904 - mitsuhiko:feature/term-meta-propagation, r=kbknapp

Propagate terminal widths to subcommands

This fixes #901
This commit is contained in:
Homu 2017-03-16 23:15:59 +09:00
commit 16764bfa27

View file

@ -329,6 +329,8 @@ impl<'a, 'b> Parser<'a, 'b>
} }
sc.p.settings = sc.p.settings | self.g_settings; sc.p.settings = sc.p.settings | self.g_settings;
sc.p.g_settings = sc.p.g_settings | self.g_settings; sc.p.g_settings = sc.p.g_settings | self.g_settings;
sc.p.meta.term_w = self.meta.term_w;
sc.p.meta.max_w = self.meta.max_w;
} }
sc.p.propogate_settings(); sc.p.propogate_settings();
} }