buffer: Fix buffer lines updating if the new string is an empty string.
This should fix the buffer sorting bug where the prefix isn't properly updated.
This commit is contained in:
parent
4eb1d52d81
commit
a75ce9c636
1 changed files with 6 additions and 6 deletions
|
@ -314,17 +314,17 @@ class WeechatChannelBuffer(object):
|
|||
):
|
||||
new_data = {}
|
||||
|
||||
if date:
|
||||
if date is not None:
|
||||
new_data["date"] = str(date)
|
||||
if date_printed:
|
||||
if date_printed is not None:
|
||||
new_data["date_printed"] = str(date_printed)
|
||||
if tags:
|
||||
if tags is not None:
|
||||
new_data["tags_array"] = ",".join(tags)
|
||||
if prefix:
|
||||
if prefix is not None:
|
||||
new_data["prefix"] = prefix
|
||||
if message:
|
||||
if message is not None:
|
||||
new_data["message"] = message
|
||||
if highlight:
|
||||
if highlight is not None:
|
||||
new_data["highlight"] = highlight
|
||||
|
||||
if new_data:
|
||||
|
|
Loading…
Add table
Reference in a new issue