diff options
author | nfnty <git@nfnty.se> | 2017-02-03 01:39:24 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-02-03 01:39:24 +0100 |
commit | bc1bea000aa785f6b2432589a698f73ea739faa5 (patch) | |
tree | 5dd7745721b48727833b05b4742b8d3f0f35a22d /ranger | |
parent | 71a5fa56a40fe447a5670aef9800711b93553e25 (diff) | |
download | ranger-bc1bea000aa785f6b2432589a698f73ea739faa5.tar.gz |
core.actions.Actions.move: Fix visual selection
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 2 |
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)) |