aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/readerview.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/readerview.cc b/src/readerview.cc
index 35444cf..f67c962 100644
--- a/src/readerview.cc
+++ b/src/readerview.cc
@@ -180,10 +180,8 @@ void ReaderView::refresh() {
} else {
iter = buf->insert_with_tags(iter, tex.text, tags);
}
- if(!tex.text.empty() and tex.text.back() == '\n') {
- isNewline = true;
- } else {
- isNewline = false;
+ if(!tex.text.empty()) {
+ isNewline = (tex.text.back() == '\n');
}
}
}