Branch: refs/heads/master Author: William Fraser william.fraser@virgin.net Committer: William Fraser william.fraser@virgin.net Date: Wed, 11 Apr 2012 13:58:33 Commit: 466f5f945882b34e4c8707aefc7a08b4504ed4c6 https://github.com/geany/geany-plugins/commit/466f5f945882b34e4c8707aefc7a08...
Log Message: ----------- only save file details if have closed folds or markers set
Modified Paths: -------------- geanynumberedbookmarks/src/geanynumberedbookmarks.c
Modified: geanynumberedbookmarks/src/geanynumberedbookmarks.c 4 files changed, 3 insertions(+), 1 deletions(-) =================================================================== @@ -452,7 +452,9 @@ static void SaveSettings(void) /* don't need a ',' after last position (have '\0' instead) */ pszMarkers--; pszMarkers[0]=0; - g_key_file_set_string(config,"FileData",cKey,szMarkers); + /* only save positions of markers if set. Will contain 9 commas only if none set */ + if(szMarkers[9]!=0) + g_key_file_set_string(config,"FileData",cKey,szMarkers);
g_free(cKey);
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).