Skip to content

Commit

Permalink
fix swallowing last line
Browse files Browse the repository at this point in the history
  • Loading branch information
saldoukhov committed Apr 18, 2023
1 parent dec0553 commit 0410966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
val ktorVersion: String by project

group = "us.yozik"
version = "1.0"
version = "1.0.1"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/nativeMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ fun getChuckAnswerAsBuffer(session: Session, chuck: Chuck, question: String): St
}
}
}
return currentAnswer.lines.joinToString(separator = "\n")
return currentAnswer.lines.joinToString(separator = "\n") + (currentAnswer.currentLine ?: "")
}
}

Expand Down

0 comments on commit 0410966

Please sign in to comment.