xW: make newline before unread marker conditional
This commit is contained in:
parent
5a412ab6e2
commit
e72793e315
|
@ -685,10 +685,12 @@ buffer_print_line(std::vector<BufferLine>::const_iterator begin,
|
||||||
static void
|
static void
|
||||||
buffer_print_separator()
|
buffer_print_separator()
|
||||||
{
|
{
|
||||||
|
bool sameline = !GetWindowTextLength(g.hwndBuffer);
|
||||||
|
|
||||||
CHARFORMAT2 format = default_charformat();
|
CHARFORMAT2 format = default_charformat();
|
||||||
format.dwEffects &= ~CFE_AUTOCOLOR;
|
format.dwEffects &= ~CFE_AUTOCOLOR;
|
||||||
format.crTextColor = RGB(0xff, 0x5f, 0x00);
|
format.crTextColor = RGB(0xff, 0x5f, 0x00);
|
||||||
richedit_replacesel(g.hwndBuffer, &format, L"\n---");
|
richedit_replacesel(g.hwndBuffer, &format, &L"\n---"[sameline]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue