From 75bf6abc67b50177292f16aa2042950b189895e9 Mon Sep 17 00:00:00 2001 From: Toon Nolten Date: Wed, 16 May 2018 15:39:59 +0200 Subject: Actually check whether selection is a directory `Actions.move()` used `enter_dir()` to determine whether the selection was a directory. Now we explicitly check whether it's a directory. Fixes #1177 --- ranger/core/actions.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 6bbb35aa..981df05b 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -483,9 +483,12 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m mode = narg tfile = self.thisfile selection = self.thistab.get_selection() - if not self.thistab.enter_dir(tfile) and selection: - result = self.execute_file(selection, mode=mode) - if result in (False, ASK_COMMAND): + if selection: + if selection.is_directory: + self.thistab.enter_dir(tfile) + else: + result = self.execute_file(selection, mode=mode) + if result in (False, ASK_COMMAND): self.open_console('open_with ') elif direction.vertical() and cwd.files: pos_new = direction.move( -- cgit 1.4.1-2-gfad0 > tree commit diff stats
path: root/src/strstr.c
blob: 7dcd7d560cc06950a24107efe6e922f0961d6739 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60