summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index f17ed01d..29e1f69f 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -490,7 +490,7 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
             cwd.move(to=newpos)
             if self.mode == 'visual':
                 try:
-                    startpos = cwd.index(self._visual_start)
+                    startpos = cwd.files.index(self._visual_start)
                 except ValueError:
                     self._visual_start = None
                     startpos = min(self._visual_start_pos, len(cwd))