diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-24 17:51:28 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-24 18:10:42 -0800 |
commit | 0fbddb0df1495e1cb275fa5ab15ba7f0ab3cc9fa (patch) | |
tree | b77b8331bdfd7f7a89a9c1ea55c4de7d9b240525 /parser.cpp | |
parent | 4c5c1fc9ef22fff4e03db4632b4692b0f7e77966 (diff) |
Add fish_new_pager variable to enable new pager on request, disabled by default.
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -3122,3 +3122,16 @@ bool parser_use_ast(void) return from_string<bool>(var); } } + +bool pager_use_inline(void) +{ + env_var_t var = env_get_string(L"fish_new_pager"); + if (var.missing_or_empty()) + { + return 0; + } + else + { + return from_string<bool>(var); + } +} |