From 88d1575d9a728df278e4c7cef365b33bc738f73a Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 1 Mar 2013 12:56:10 +0100 Subject: settingobject: remove complexity of shorten_title setting --- doc/ranger.1 | 6 +++--- doc/ranger.pod | 4 ++-- ranger/container/settingobject.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/ranger.1 b/doc/ranger.1 index e0be02ef..15918188 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -642,10 +642,10 @@ is reset when you restart ranger. .IP "scroll_offset [integer]" 4 .IX Item "scroll_offset [integer]" Try to keep this much space between the top/bottom border when scrolling. -.IP "shorten_title [integer, bool]" 4 -.IX Item "shorten_title [integer, bool]" +.IP "shorten_title [integer]" 4 +.IX Item "shorten_title [integer]" Trim the title of the window if it gets long? The number defines how many -directories are displayed at once, False turns off this feature. +directories are displayed at once. A value of 0 turns off this feature. .IP "show_cursor [bool]" 4 .IX Item "show_cursor [bool]" Always show the terminal cursor? diff --git a/doc/ranger.pod b/doc/ranger.pod index 50c7b7c1..c7c481b6 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -627,10 +627,10 @@ is reset when you restart ranger. Try to keep this much space between the top/bottom border when scrolling. -=item shorten_title [integer, bool] +=item shorten_title [integer] Trim the title of the window if it gets long? The number defines how many -directories are displayed at once, False turns off this feature. +directories are displayed at once. A value of 0 turns off this feature. =item show_cursor [bool] diff --git a/ranger/container/settingobject.py b/ranger/container/settingobject.py index 28f1c639..76ab7fc4 100644 --- a/ranger/container/settingobject.py +++ b/ranger/container/settingobject.py @@ -33,7 +33,7 @@ ALLOWED_SETTINGS = { 'preview_script': (str, type(None)), 'save_console_history': bool, 'scroll_offset': int, - 'shorten_title': int, # XXX Note: False is an instance of int + 'shorten_title': int, 'show_cursor': bool, 'show_hidden_bookmarks': bool, 'show_hidden': bool, -- cgit 1.4.1-2-gfad0