diff --git a/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/State.kt b/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/State.kt index 02259f62..425cf6df 100644 --- a/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/State.kt +++ b/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/State.kt @@ -141,8 +141,10 @@ private fun readSettings(file: Path): MutableMap { do { i++ if (i >= lines.size) break - value += lines[i].dropLast(1) + '\n' - } while (lines[i].endsWith('\\')) + value += lines[i].dropLast(1) + val continuation = lines[i].endsWith('\\') + if (continuation) value += '\n' + } while (continuation) } settings[line.substring(0, index)] = value }