diff options
author | fiaxh <git@mx.ax.lt> | 2017-03-15 22:01:32 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-03-16 17:56:38 +0100 |
commit | af49a47cf6c5933a9bcc21f2b7bb20d85be37483 (patch) | |
tree | 6f1c993fea5f238a1131d23586d9b8095553dc5b /main/src/ui/conversation_summary | |
parent | f277db6cb459c6e7456fb75722b9d57f734c4db6 (diff) | |
download | dino-af49a47cf6c5933a9bcc21f2b7bb20d85be37483.tar.gz dino-af49a47cf6c5933a9bcc21f2b7bb20d85be37483.zip |
Fix ChatInput for many lines + small UI changes
Diffstat (limited to 'main/src/ui/conversation_summary')
-rw-r--r-- | main/src/ui/conversation_summary/message_textview.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/conversation_summary/message_textview.vala b/main/src/ui/conversation_summary/message_textview.vala index 6474a1a3..28df9a53 100644 --- a/main/src/ui/conversation_summary/message_textview.vala +++ b/main/src/ui/conversation_summary/message_textview.vala @@ -35,7 +35,7 @@ public class MessageTextView : TextView { } private void format_suffix_urls(string text) { - int absolute_start = buffer.text.length - text.length; + int absolute_start = buffer.text.char_count() - text.char_count(); Regex url_regex = new Regex("""(?i)\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))"""); MatchInfo match_info; |