From fabec26d0e3f947cfc0f73bdea40bd1694e3adff Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 3 Oct 2010 00:12:08 +0200 Subject: gui.widgets.browsercolumn: more robust check for copied files --- ranger/gui/widgets/browsercolumn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index 6ed9ce6b..dacc3920 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -199,6 +199,8 @@ class BrowserColumn(Pager): self._set_scroll_begin() + copied = [f.path for f in self.env.copy] + selected_i = self.target.pointer for line in range(self.hei): i = line + self.scroll_begin @@ -255,7 +257,7 @@ class BrowserColumn(Pager): if drawn.is_device: this_color.append('device') - if self.env.copy and drawn in self.env.copy: + if drawn.path in copied: this_color.append('cut' if self.env.cut else 'copied') if drawn.is_link: -- cgit 1.4.1-2-gfad0