summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/defaultui.py2
-rw-r--r--ranger/gui/displayable.py12
-rw-r--r--ranger/gui/widgets/notify.py2
3 files changed, 12 insertions, 4 deletions
diff --git a/ranger/gui/defaultui.py b/ranger/gui/defaultui.py
index 135ef0b5..462d394d 100644
--- a/ranger/gui/defaultui.py
+++ b/ranger/gui/defaultui.py
@@ -42,7 +42,7 @@ class DefaultUI(UI):
 		UI.update_size(self)
 		y, x = self.env.termsize
 
-		notify_hei = self.notify.requested_height
+		notify_hei = min(max(1, y - 4), self.notify.requested_height)
 
 		self.filelist_container.resize(1, 0, y - 1 - notify_hei, x)
 		self.pman.resize(1, 0, y - 1 - notify_hei, x)
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py
index f54a3fc7..a9c297b5 100644
--- a/ranger/gui/displayable.py
+++ b/ranger/gui/displayable.py
@@ -56,12 +56,20 @@ class Displayable(EnvironmentAware, FileManagerAware, SettingsAware):
 	def color(self, keylist = None, *keys):
 		"""Change the colors from now on."""
 		keys = combine(keylist, keys)
-		self.win.attrset(self.colorscheme.get_attr(*keys))
+		attr = self.colorscheme.get_attr(*keys)
+		try:
+			self.win.attrset(attr)
+		except:
+			pass
 
 	def color_at(self, y, x, wid, keylist = None, *keys):
 		"""Change the colors at the specified position"""
 		keys = combine(keylist, keys)
-		self.win.chgat(y, x, wid, self.colorscheme.get_attr(*keys))
+		attr = self.colorscheme.get_attr(*keys)
+		try:
+			self.win.chgat(y, x, wid, attr)
+		except:
+			pass
 	
 	def color_reset(self):
 		"""Change the colors to the default colors"""
diff --git a/ranger/gui/widgets/notify.py b/ranger/gui/widgets/notify.py
index e3f972ee..8b783fdb 100644
--- a/ranger/gui/widgets/notify.py
+++ b/ranger/gui/widgets/notify.py
@@ -33,7 +33,7 @@ class Notify(Widget):
 			self.color_at(i, 0, self.wid,\
 					'in_notify', 'background', how)
 			self.color('in_notify', 'message', how)
-			self.win.addnstr(i, 0, msg.text, self.wid)
+			self.addstr(i, 0, msg.text)
 			i += 1
 
 		self.color_reset()
le>
Console

   (X) #0   09/12/06  console commands
   (X) #1   09/12/06  quick find
   (X) #2   09/12/06  open with
   (X) #4   09/12/06  history for console
   (X) #13  09/12/27  display docstring of a command


General

   (X) #5   09/12/06  move code from fm into objects
   (X) #6   09/12/06  move main to __init__
   (X) #7   09/12/06  cooler titlebar
   (X) #8   09/12/17  Add operations to modify files/directories
   (X) #9   09/12/24  add a widget for managing running operations
   (X) #10  09/12/24  sorting
   (X) #11  09/12/27  filter
   (X) #12  09/12/27  jump through the list in a specific order
   (X) #14  09/12/29  make filelists inherit from pagers
   (X) #15  09/12/29  better way of running processes!!~
   (X) #16  10/01/01  list of bookmarks
   (X) #21  10/01/01  write help!
   ( ) #22  10/01/03  add getopt options to change flags/mode
   (X) #29  10/01/06  add chmod command
   (X) #30  10/01/06  add a way to create symlinks
   ( ) #32  10/01/08  place the (hidden) cursor to a meaningful position
   ( ) #34  10/01/09  display free disk space
   ( ) #35  10/01/09  display disk usage of files in current directory
   ( ) #36  10/01/11  help coloring is terribly inefficient


Bugs

   (X) #17  10/01/01  why do bookmarks disappear sometimes?
   (X) #18  10/01/01  fix notify widget (by adding a LogView?)
   (X) #19  10/01/01  resizing after pressing g
   (X) #23  10/01/04  stop dir loading with ^C -> wont load anymore
   (X) #25  10/01/06  directories sometimes dont reload correctly
   (X) #26  10/01/06  :delete on symlinks of directories fails
   (X) #31  10/01/06  ^C breaks cd-after-exit by stopping sourced shell script


Ideas

   ( ) #20  10/01/01  use inotify to monitor filesystem changes
   ( ) #24  10/01/06  progress bar
   ( ) #27  10/01/06  hide bookmarks in list which contain hidden dir
   ( ) #28  10/01/06  use regexp instead of string for searching
   ( ) #33  10/01/08  accelerate mousewheel speed