Skip to content

Commit

Permalink
* find.c (find_do_view_edit): Only strip the leading "./" from a
Browse files Browse the repository at this point in the history
	directory name if the rest is not empty.
  • Loading branch information
rillig committed Feb 3, 2006
1 parent 3b1d56c commit 2d6b472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
file from the panel, not.
* util.h (str_unconst): This function is never needed to be
inlined.
* find.c (find_do_view_edit): Only strip the leading "./" from a
directory name if the rest is not empty.

2006-02-03 Pavel Tsekov <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion src/find.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ find_do_view_edit (int unparsed_view, int edit, char *dir, char *file)
}
if (dir [0] == '.' && dir [1] == 0)
fullname = g_strdup (filename);
else if (dir [0] == '.' && dir [1] == PATH_SEP)
else if (dir [0] == '.' && dir [1] == PATH_SEP && dir[2] != '\0')
fullname = concat_dir_and_file (dir+2, filename);
else
fullname = concat_dir_and_file (dir, filename);
Expand Down

0 comments on commit 2d6b472

Please sign in to comment.