diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-12-08 02:25:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-12-08 02:25:03 +0100 |
commit | 5e29715201f3b67648728a0cd048fd1b3e1dbcf7 (patch) | |
tree | 641c63fec25861f32b135c9997972bb0ec10887c /include/Body.hpp | |
parent | 9a5412b692ec79a2688998db2f7b554e829e3278 (diff) |
Add replying to posts (image boards), changed keybinding of writing a post (image boards)
Diffstat (limited to 'include/Body.hpp')
-rw-r--r-- | include/Body.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Body.hpp b/include/Body.hpp index 35928cb..b90f64a 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -12,14 +12,14 @@ namespace QuickMedia { class BodyItem { public: - BodyItem(std::string _title): visible(true), num_lines(0) { + BodyItem(std::string _title): visible(true), num_lines(1) { set_title(std::move(_title)); } void set_title(std::string new_title) { title = std::move(new_title); // TODO: Optimize this - num_lines = 0; + num_lines = 1; for(char c : title) { if(c == '\n') ++num_lines; |