-
Notifications
You must be signed in to change notification settings - Fork 126
buffer: Fix prefix of multiline messages #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This primarily fixes alignment of multiline messages when
weechat.look.prefix_align is set to "none". Messages without prefix
would otherwise be aligned with the nickname instead of being aligned
with the message.
Example before:
20:20:00 <abcdefg> > In reply to @xyz:matrix.org
20:20:00 > Lorem ipsum dolor sit amet, consectetur adipiscing elit.
20:20:00 Sed accumsan nisi vel vestibulum hendrerit.
20:21:00 <xyz> Cras a lacus libero.
Example after the fix:
20:20:00 <abcdefg> > In reply to @xyz:matrix.org
20:20:00 <abcdefg> > Lorem ipsum dolor sit amet, consectetur adipiscing elit.
20:20:00 <abcdefg> Sed accumsan nisi vel vestibulum hendrerit.
20:21:00 <xyz> Cras a lacus libero.
With weechat.look.prefix_align being set to the default "right", the
additional lines would be printed prefixed with "<>" and
weechat.look.{prefix_same_nick,prefix_same_nick_middle} weren't taken
into account. Now they are.
This one makes it easier to see which lines are separate messages and which are just a multiline message. Inspired (actually shamelessly copy-pasted) by wee-slack/wee-slack@adb1029 that fixes the same issue in wee-slack. Example before: 20:20:00 <abcdefg> > In reply to @xyz:matrix.org 20:20:00 <abcdefg> > Lorem ipsum dolor sit amet, consectetur adipiscing elit. 20:20:00 <abcdefg> Sed accumsan nisi vel vestibulum hendrerit. 20:21:00 <xyz> Cras a lacus libero. Example after the fix: 20:20:00 <abcdefg> > In reply to @xyz:matrix.org 20:20:00 < > > Lorem ipsum dolor sit amet, consectetur adipiscing elit. 20:20:00 < > Sed accumsan nisi vel vestibulum hendrerit. 20:21:00 <xyz> Cras a lacus libero. This unfortunately breaks prefix_same_nick for multiline messages again. (Probably not a big deal. Certainly not for me.)
|
I don't think we should break |
|
I can understand that. Breaking |
|
What do you mean that
When As far as I know, this change shouldn't affect |
|
This also means that the alignment won't be fixed by this PR when |
|
@trygveaa Oh, you're right, weechat uses the (I actually run one extra commit on top of this PR, which does something a bit closer to what wee-slack does: liskin@42f1b86, because I really hated the |
Oh, I see that happens when |
This primarily fixes alignment of multiline messages when
weechat.look.prefix_align is set to "none". Messages without prefix
would otherwise be aligned with the nickname instead of being aligned
with the message.
Example before:
Example after the fix:
With weechat.look.prefix_align being set to the default "right", the
additional lines would be printed prefixed with "<>" and
weechat.look.{prefix_same_nick,prefix_same_nick_middle} weren't taken
into account. Now they are.