Chore: newline count
This commit is contained in:
2
tui.go
2
tui.go
@@ -1293,6 +1293,8 @@ func init() {
|
|||||||
// newline is not needed is prev msg ends with one
|
// newline is not needed is prev msg ends with one
|
||||||
if strings.HasSuffix(prevText, nl) {
|
if strings.HasSuffix(prevText, nl) {
|
||||||
nl = ""
|
nl = ""
|
||||||
|
} else if strings.HasSuffix(prevText, "\n") {
|
||||||
|
nl = "\n" // only one newline, add another
|
||||||
}
|
}
|
||||||
if msgText != "" {
|
if msgText != "" {
|
||||||
// as what char user sends msg?
|
// as what char user sends msg?
|
||||||
|
|||||||
Reference in New Issue
Block a user