Skip empty lines in favorites.txt (#1571)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
874eb46c93
commit
aab8ce5e3a
@ -64,7 +64,7 @@ uint16_t archive_favorites_count(void* context) {
|
||||
break;
|
||||
}
|
||||
if(!string_size(buffer)) {
|
||||
break;
|
||||
continue; // Skip empty lines
|
||||
}
|
||||
++lines;
|
||||
}
|
||||
@ -93,7 +93,7 @@ static bool archive_favourites_rescan() {
|
||||
break;
|
||||
}
|
||||
if(!string_size(buffer)) {
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
||||
if(string_search(buffer, "/app:") == 0) {
|
||||
@ -152,7 +152,7 @@ bool archive_favorites_read(void* context) {
|
||||
break;
|
||||
}
|
||||
if(!string_size(buffer)) {
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
||||
if(string_search(buffer, "/app:") == 0) {
|
||||
@ -215,7 +215,7 @@ bool archive_favorites_delete(const char* format, ...) {
|
||||
break;
|
||||
}
|
||||
if(!string_size(buffer)) {
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
||||
if(string_search(buffer, filename)) {
|
||||
@ -259,7 +259,7 @@ bool archive_is_favorite(const char* format, ...) {
|
||||
break;
|
||||
}
|
||||
if(!string_size(buffer)) {
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
if(!string_search(buffer, filename)) {
|
||||
found = true;
|
||||
@ -299,7 +299,7 @@ bool archive_favorites_rename(const char* src, const char* dst) {
|
||||
break;
|
||||
}
|
||||
if(!string_size(buffer)) {
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
||||
archive_file_append(
|
||||
|
Loading…
Reference in New Issue
Block a user