about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--code/draw.rb8
-rw-r--r--code/fm.rb1
-rw-r--r--code/keys.rb3
3 files changed, 10 insertions, 2 deletions
diff --git a/code/draw.rb b/code/draw.rb
index cd12770f..cb8ae88a 100644
--- a/code/draw.rb
+++ b/code/draw.rb
@@ -122,7 +122,11 @@ module Fm
 				puti l, left, fn[0, wid-1].ljust(wid+1)
 			end
 
-			attr_at(l, left, fn.size.limit(wid-1), mycolor.send(clrname))
+			if infos and OPTIONS['wide_bar']
+				attr_at(l, left-1, wid+1, mycolor.send(clrname))
+			else
+				attr_at(l, left, fn.size.limit(wid-1), mycolor.send(clrname))
+			end
 		end
 
 		column_clear(c, l-1)
@@ -282,7 +286,7 @@ module Fm
 			when 'S'
 				puti btm, "Sort by (n)ame (s)ize (m)time (c)time (CAPITAL:reversed)"
 			when 't'
-				puti btm, "Toggle (h)idden_files (d)irs_first (c)olor (f)ilepreview (p)review"
+				puti btm, "Toggle (h)idden_files (d)irs_first (c)olor (f)ilepreview (p)review (w)idebar"
 			else
 				attr_set(Color.base)
 				attr_set(Color.info)
diff --git a/code/fm.rb b/code/fm.rb
index 91b037a1..76056958 100644
--- a/code/fm.rb
+++ b/code/fm.rb
@@ -6,6 +6,7 @@ OPTIONS = {
 	'dir_first' => true,
 	'sort_reverse' => false,
 	'color' => true,
+	'wide_bar' => true,
 	'filepreview' => true,
 	'preview' => true,
 }
diff --git a/code/keys.rb b/code/keys.rb
index a048f07d..0498f6f6 100644
--- a/code/keys.rb
+++ b/code/keys.rb
@@ -378,6 +378,9 @@ module Fm
 				end
 			end
 
+		when 'tw'
+			OPTIONS['wide_bar'] ^= true
+
 		when 'tp'
 			OPTIONS['preview'] ^= true