File ChangeLog changed (mode: 100644) (index b22c3feeb..33bd3ad6c) |
100 |
100 |
Fixed write to a pipe of a closed process in Lua causing SIGPIPE and |
Fixed write to a pipe of a closed process in Lua causing SIGPIPE and |
101 |
101 |
termination of the application. |
termination of the application. |
102 |
102 |
|
|
|
103 |
|
Fixed :. incorrectly checking for one path being parent of another and |
|
104 |
|
producing weird results ("/pa" was considered parent of "/path", with "th" |
|
105 |
|
being the result). Thanks to Dennis Preiser (a.k.a. 0xDP). |
|
106 |
|
|
103 |
107 |
0.12-beta to 0.12 (2021-09-29) |
0.12-beta to 0.12 (2021-09-29) |
104 |
108 |
|
|
105 |
109 |
Made :VifmCs of the plugin handle 24-bit colors. |
Made :VifmCs of the plugin handle 24-bit colors. |
File src/filename_modifiers.c changed (mode: 100644) (index 049295276..104333727) |
32 |
32 |
#include "utils/path.h" |
#include "utils/path.h" |
33 |
33 |
#include "utils/regexp.h" |
#include "utils/regexp.h" |
34 |
34 |
#include "utils/str.h" |
#include "utils/str.h" |
|
35 |
|
#include "filelist.h" |
35 |
36 |
#include "status.h" |
#include "status.h" |
36 |
37 |
|
|
37 |
38 |
static const char * apply_mod(const char *path, const char *parent, |
static const char * apply_mod(const char *path, const char *parent, |
|
... |
... |
apply_tilde_mod(const char *path, char *buf, size_t buf_len) |
168 |
169 |
static int |
static int |
169 |
170 |
apply_dot_mod(const char *path, char *buf, size_t buf_len) |
apply_dot_mod(const char *path, char *buf, size_t buf_len) |
170 |
171 |
{ |
{ |
171 |
|
size_t len = strlen(curr_view->curr_dir); |
|
172 |
|
if(strnoscmp(path, curr_view->curr_dir, len) != 0 || path[len] == '\0') |
|
173 |
|
copy_str(buf, buf_len, path); |
|
|
172 |
|
const char *curr_dir = flist_get_dir(curr_view); |
|
173 |
|
if(path_starts_with(path, curr_dir) && !paths_are_equal(path, curr_dir)) |
|
174 |
|
copy_str(buf, buf_len, make_rel_path(path, curr_dir)); |
174 |
175 |
else |
else |
175 |
|
copy_str(buf, buf_len, path + len + 1); |
|
|
176 |
|
copy_str(buf, buf_len, path); |
176 |
177 |
return 0; |
return 0; |
177 |
178 |
} |
} |
178 |
179 |
|
|