From f3bc52e556867d00fa1ba51f9dc93a2cde75b15b Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 26 Apr 2010 12:42:39 +0200 Subject: fixed bug #78: broken preview when deleting all files in a directory --- TODO | 3 ++- ranger/fsobject/directory.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index aac244cd..48651888 100644 --- a/TODO +++ b/TODO @@ -53,6 +53,7 @@ General ( ) #80 10/04/08 when closing tabs, avoid gaps? ( ) #81 10/04/15 system crash when previewing /proc/kcore with root permissions ( ) #83 10/04/19 better ways to mark files. eg by regexp, filetype,.. + ( ) #86 10/04/21 narg for move_parent Bugs @@ -78,7 +79,7 @@ Bugs (X) #69 10/03/11 tab-completion breaks with Apps subclass (X) #73 10/03/21 when clicking on the first column, it goes 1x down (X) #74 10/03/21 console doesn't scroll - ( ) #78 10/03/31 broken preview when deleting all files in a directory + (X) #78 10/03/31 broken preview when deleting all files in a directory ( ) #85 10/04/26 no automatic reload of directory after using :filter diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index 5c42b0b8..43af772a 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -224,6 +224,7 @@ class Directory(FileSystemObject, Accumulator, SettingsAware): self.content_loaded = True self.determine_infostring() self.last_update_time = time() + self.correct_pointer() finally: self.loading = False -- cgit 1.4.1-2-gfad0