1
Last-Update: 2012-08-24
2
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
3
Applied-Upstream: 4.8.5
5
Bug-MC: https://www.midnight-commander.org/ticket/2862
6
Bug-Debian: http://bugs.debian.org/675692
7
Description: backported fix for q{Directory tree view refresh problem}
8
this patch require 2835.patch
10
--- a/src/filemanager/treestore.c
11
+++ b/src/filemanager/treestore.c
13
len = vfs_path_len (ts.check_name);
15
current = ts.check_start;
16
- while (current != NULL && vfs_path_cmp (current->name, ts.check_name) == 0)
17
+ while (current != NULL && vfs_path_ncmp (current->name, ts.check_name, len) == 0)
22
current_name = vfs_path_to_str (current->name);
23
- ok = (current_name[len] == '\0' || (current_name[len] == PATH_SEP || len == 1));
24
+ ok = (current_name[len] == '\0' || current_name[len] == PATH_SEP || len == 1);
25
g_free (current_name);