Commit 40947ed5 authored by Cosimo Cecchi's avatar Cosimo Cecchi

file-operations: make sure to handle correctly hidden files extensions

This is a fixup of c250b570
parent 1f31ab18
......@@ -541,7 +541,7 @@ parse_previous_duplicate_name (const char *name,
g_assert (name[0] != '\0');
*suffix = eel_filename_get_extension_offset (name);
*suffix = eel_filename_get_extension_offset (name + 1);
if (*suffix == NULL || (*suffix)[1] == '\0') {
/* no suffix */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment