summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-02-03 01:39:24 +0100
committernfnty <git@nfnty.se>2017-02-03 01:39:24 +0100
commitbc1bea000aa785f6b2432589a698f73ea739faa5 (patch)
tree5dd7745721b48727833b05b4742b8d3f0f35a22d
parent71a5fa56a40fe447a5670aef9800711b93553e25 (diff)
downloadranger-bc1bea000aa785f6b2432589a698f73ea739faa5.tar.gz
core.actions.Actions.move: Fix visual selection
-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))