[polari] chatView: Fix updating compressed status message
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] chatView: Fix updating compressed status message
- Date: Thu, 17 Dec 2015 01:47:26 +0000 (UTC)
commit 6f044e0614c7150b304f523cd8013dcc6793f348
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Dec 17 02:27:05 2015 +0100
chatView: Fix updating compressed status message
When updating the status group header, we delete all text until
the end of the header tag before inserting the updated status
summary. However this means that on the first update, we remove
the newline between header and collapsed status message that is
included by the tag - fix by deleting to the line end instead of
the tag toggle.
src/chatView.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 01eb559..9412111 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -798,7 +798,7 @@ const ChatView = new Lang.Class({
let start = buffer.get_iter_at_mark(headerMark);
let end = start.copy();
- end.forward_to_tag_toggle(headerTag);
+ end.forward_to_line_end(headerTag);
buffer.delete(start, end);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]