forked from mia/Aegisub
folding: Always write fold data to file
This commit is contained in:
parent
663112ba03
commit
9b920c7892
|
@ -108,6 +108,7 @@ struct Writer {
|
|||
WriteIfNotZero("Scroll Position: ", properties.scroll_position);
|
||||
WriteIfNotZero("Active Line: ", properties.active_row);
|
||||
WriteIfNotZero("Video Position: ", properties.video_position);
|
||||
}
|
||||
|
||||
std::string foldsdata;
|
||||
for (LineFold fold : properties.folds) {
|
||||
|
@ -120,10 +121,8 @@ struct Writer {
|
|||
foldsdata += ":";
|
||||
foldsdata += fold.collapsed ? "1" : "0";
|
||||
}
|
||||
|
||||
WriteIfNotEmpty("Line Folds: ", foldsdata);
|
||||
}
|
||||
}
|
||||
|
||||
void WriteIfNotEmpty(const char *key, std::string const& value) {
|
||||
if (!value.empty())
|
||||
|
|
Loading…
Reference in New Issue