diff options
author | hut <hut@lavabit.com> | 2013-03-01 12:56:10 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-03-01 12:56:43 +0100 |
commit | 88d1575d9a728df278e4c7cef365b33bc738f73a (patch) | |
tree | fc28c4a82de8734d1dbba3e455e6a1a0063f8f6d | |
parent | 0416393c53bddb0a73f4d1c5930172e6c2114abc (diff) | |
download | ranger-88d1575d9a728df278e4c7cef365b33bc738f73a.tar.gz |
settingobject: remove complexity of shorten_title setting
-rw-r--r-- | doc/ranger.1 | 6 | ||||
-rw-r--r-- | doc/ranger.pod | 4 | ||||
-rw-r--r-- | 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, |