summaryrefslogtreecommitdiffstats
path: root/src/options.rs
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-12-25 14:34:25 -0500
committerClementTsang <cjhtsang@uwaterloo.ca>2020-12-25 14:34:25 -0500
commit2bad8f2d72f5588792f39cedb07200c125a6dee0 (patch)
tree63376f88a95fd1dbff4700ade7d438f771d58f15 /src/options.rs
parent2f0cecf81766111f4996b265bcdb546bf60c6be7 (diff)
other: re-enable table scroll position
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/options.rs b/src/options.rs
index f5edc46e..9a8de130 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -977,14 +977,13 @@ fn get_is_default_tree(matches: &clap::ArgMatches<'static>, config: &Config) ->
false
}
-// FIXME: Re-enable this for 0.6
-fn get_show_table_scroll_position(_matches: &clap::ArgMatches<'static>, _config: &Config) -> bool {
- // if matches.is_present("show_table_scroll_position") {
- // return true;
- // } else if let Some(flags) = &config.flags {
- // if let Some(show_table_scroll_position) = flags.show_table_scroll_position {
- // return show_table_scroll_position;
- // }
- // }
+fn get_show_table_scroll_position(matches: &clap::ArgMatches<'static>, config: &Config) -> bool {
+ if matches.is_present("show_table_scroll_position") {
+ return true;
+ } else if let Some(flags) = &config.flags {
+ if let Some(show_table_scroll_position) = flags.show_table_scroll_position {
+ return show_table_scroll_position;
+ }
+ }
false
}