~ubuntu-branches/ubuntu/quantal/mc/quantal

« back to all changes in this revision

Viewing changes to debian/patches/2862.patch

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-08-25 12:19:25 UTC
  • mfrom: (4.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20120825121925-735z18zgbebhp08i
Tags: 3:4.8.3-6
* xz compression for binary packages.
* new backported patches:
  + to fix "refresh problem in directory tree view" (Closes: #675692).
  + to fix "mcedit can't save file in safe mode" (Closes: #673252).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Last-Update: 2012-08-24
 
2
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
 
3
Applied-Upstream: 4.8.5
 
4
Forwarded: not-needed
 
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
 
9
 
 
10
--- a/src/filemanager/treestore.c
 
11
+++ b/src/filemanager/treestore.c
 
12
@@ -850,13 +850,13 @@
 
13
     len = vfs_path_len (ts.check_name);
 
14
 
 
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)
 
18
     {
 
19
         char *current_name;
 
20
         gboolean ok;
 
21
 
 
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);
 
26
         if (!ok)
 
27
             break;