summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 5270a8da..c2a93231 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -76,7 +76,7 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
 
         Change mode to "visual" (selection) or "normal" mode.
         """
-        if mode == self.mode:
+        if mode == self.mode:  # pylint: disable=access-member-before-definition
             return
         if mode == 'visual':
             self._visual_start = self.thisdir.pointed_obj
@@ -84,7 +84,7 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
             self._previous_selection = set(self.thisdir.marked_items)
             self.mark_files(val=not self._visual_reverse, movedown=False)
         elif mode == 'normal':
-            if self.mode == 'visual':
+            if self.mode == 'visual':  # pylint: disable=access-member-before-definition
                 self._visual_start = None
                 self._visual_start_pos = None
                 self._previous_selection = None