Renamed Find_last_slash() to Find_last_separator() to make purpose more clear.
Append_path(): - when adding sub directories: don't add a "/" when last separator is a ":". - when climbing upwards: don't remove the ":" it it's the last separator. Those fixes help the file selector for scripts on AROS. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1979 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
#include "filesel.h" // Get_item_by_index
|
||||
#include "global.h"
|
||||
#include "graph.h"
|
||||
#include "io.h" // find_last_slash
|
||||
#include "io.h" // find_last_separator
|
||||
#include "misc.h"
|
||||
#include "pages.h" // Backup()
|
||||
#include "readline.h"
|
||||
@@ -1522,7 +1522,7 @@ void Add_script(const char *name, byte is_file, byte is_directory, byte is_hidde
|
||||
const char * file_name;
|
||||
int len;
|
||||
|
||||
file_name=Find_last_slash(name)+1;
|
||||
file_name=Find_last_separator(name)+1;
|
||||
|
||||
if (is_file)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user