diff options
author | Your Name <you@example.com> | 2024-04-13 20:25:50 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2024-04-13 20:25:50 -0400 |
commit | d3d53f9ea5f987721a1212233e90c827eb580bea (patch) | |
tree | d7b2b2fe344c09307a150d299c312af8410b2784 | |
parent | 0f69886f77696c34c3093b981950dc194e4ecd18 (diff) | |
download | biblereader-d3d53f9ea5f987721a1212233e90c827eb580bea.tar.gz biblereader-d3d53f9ea5f987721a1212233e90c827eb580bea.tar.bz2 biblereader-d3d53f9ea5f987721a1212233e90c827eb580bea.zip |
-rw-r--r-- | src/readerview.cc | 6 |
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'); } } } |