Commit 806cca3c authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Federico Mena Quintero

Update comments on explicit completion

Signed-off-by: 's avatarFederico Mena Quintero <federico@gnu.org>

svn path=/trunk/; revision=19835
parent 47ddc0c8
......@@ -528,10 +528,11 @@ find_common_prefix (GtkFileChooserEntry *chooser_entry,
}
typedef enum {
PREFIX_APPENDED,
UNIQUE_PREFIX_APPENDED,
INVALID_INPUT,
NO_COMMON_PREFIX
NO_MATCH,
COMPLETED,
COMPLETED_UNIQUE,
COMPLETE_BUT_NOT_UNIQUE
} CommonPrefixResult;
/* Finds a common prefix based on the contents of the entry and mandatorily appends it */
......@@ -578,6 +579,13 @@ append_common_prefix (GtkFileChooserEntry *chooser_entry,
have_result = TRUE;
}
else
{
/* FIXME: if there was no unique_path, but there was a common_prefix,
* then we *may* have "complete but not unique". find_common_prefix()
* needs to say if the match was a complete entry, or a partial one.
*/
}
printf ("common prefix: \"%s\"\n",
common_prefix ? common_prefix : "<NONE>");
......
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