Revision: 4926 http://geany.svn.sourceforge.net/geany/?rev=4926&view=rev Author: eht16 Date: 2010-05-16 17:45:06 +0000 (Sun, 16 May 2010)
Log Message: ----------- Fix broken "Go Up" if the current path ends with a slash.
Modified Paths: -------------- trunk/ChangeLog trunk/plugins/filebrowser.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-05-16 17:44:51 UTC (rev 4925) +++ trunk/ChangeLog 2010-05-16 17:45:06 UTC (rev 4926) @@ -20,6 +20,7 @@ makefile.win32 based Windows builds. * plugins/filebrowser.c: Implement reading and evaluating hidden file attribute on Windows. + Fix broken "Go Up" if the current path ends with a slash.
2010-05-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/plugins/filebrowser.c =================================================================== --- trunk/plugins/filebrowser.c 2010-05-16 17:44:51 UTC (rev 4925) +++ trunk/plugins/filebrowser.c 2010-05-16 17:45:06 UTC (rev 4926) @@ -343,6 +343,9 @@
static void on_go_up(void) { + gsize len = strlen(current_dir); + if (current_dir[len-1] == G_DIR_SEPARATOR) + current_dir[len-1] = '\0'; /* remove the highest directory part (which becomes the basename of current_dir) */ setptr(current_dir, g_path_get_dirname(current_dir)); refresh();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.