about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-03 00:12:08 +0200
committerhut <hut@lavabit.com>2010-10-03 00:12:08 +0200
commitfabec26d0e3f947cfc0f73bdea40bd1694e3adff (patch)
tree0d40054bbcfc5f568c2056491631633905b32553
parentadda271e8381e712f123a6499728c3363f41b5ab (diff)
downloadranger-fabec26d0e3f947cfc0f73bdea40bd1694e3adff.tar.gz
gui.widgets.browsercolumn: more robust check for copied files
-rw-r--r--ranger/gui/widgets/browsercolumn.py4
1 files changed, 3 insertions, 1 deletions
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: