mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-01 13:45:29 +03:00
* ext.c (regex_check_type): Set content_shift to skip the
filename.
This commit is contained in:
parent
43bbd6d299
commit
452de6619d
@ -1,3 +1,8 @@
|
||||
2003-07-02 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* ext.c (regex_check_type): Set content_shift to skip the
|
||||
filename.
|
||||
|
||||
2003-06-27 David Sterba <dave@jikos.cz>
|
||||
|
||||
* hotlist.c: Add buttons "Refresh" and "Free VFSs now" to Active
|
||||
|
@ -419,6 +419,7 @@ regex_check_type (char *filename, int file_len, char *ptr, int *have_type)
|
||||
if (islocal) {
|
||||
if (!strncmp (content_string, filename, file_len)) {
|
||||
/* Skip "filename: " */
|
||||
content_shift = file_len;
|
||||
if (content_string[content_shift] == ':') {
|
||||
content_shift++;
|
||||
/* Solaris' file prints tab(s) after ':' */
|
||||
|
Loading…
x
Reference in New Issue
Block a user