mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
(edit_get_match_keyword_cmd): use PATH_SEP_STR instead of G_DIR_SEPARATOR_S.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
454479549c
commit
990e3053b3
@ -3533,7 +3533,7 @@ edit_get_match_keyword_cmd (WEdit * edit)
|
|||||||
g_string_append_c (match_expr, edit_buffer_get_byte (&edit->buffer, word_start + i));
|
g_string_append_c (match_expr, edit_buffer_get_byte (&edit->buffer, word_start + i));
|
||||||
|
|
||||||
ptr = g_get_current_dir ();
|
ptr = g_get_current_dir ();
|
||||||
path = g_strconcat (ptr, G_DIR_SEPARATOR_S, (char *) NULL);
|
path = g_strconcat (ptr, PATH_SEP_STR, (char *) NULL);
|
||||||
g_free (ptr);
|
g_free (ptr);
|
||||||
|
|
||||||
/* Recursive search file 'TAGS' in parent dirs */
|
/* Recursive search file 'TAGS' in parent dirs */
|
||||||
@ -3547,7 +3547,7 @@ edit_get_match_keyword_cmd (WEdit * edit)
|
|||||||
if (exist_file (tagfile))
|
if (exist_file (tagfile))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
while (strcmp (path, G_DIR_SEPARATOR_S) != 0);
|
while (strcmp (path, PATH_SEP_STR) != 0);
|
||||||
|
|
||||||
if (tagfile)
|
if (tagfile)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user