feat(优化代码): 优化配置读写,修复边界问题

This commit is contained in:
2026-08-31 15:58:22 +08:00
parent c2ceb7dea7
commit 333eff36a2
2 files changed
+27 -8

No files matched your search

+1 -1
View File
@@ -152,7 +152,7 @@ func (ini *GoINI) SetString(name string, key string, value string) {
if index, ok := ini.findSectionKeyLineIndex(name, key); ok {
ini.fileLines[index].keyValue = value
ini.fileLines[index].modified = true
ini.rebuildIndexes()
ini.sectionValues[name][key] = value
return
}
ini.ensureSectionLine(name)