Give blank lines timestamps
Otherwise the zero timestamps totally break save data loading! Bad!weechat-hashes
parent
96386adac3
commit
a46fbea0ec
4
ui.c
4
ui.c
|
@ -542,7 +542,7 @@ void uiWrite(uint id, enum Heat heat, const time_t *src, const char *str) {
|
||||||
}
|
}
|
||||||
if (window->mark && heat > Cold) {
|
if (window->mark && heat > Cold) {
|
||||||
if (!window->unreadWarm++) {
|
if (!window->unreadWarm++) {
|
||||||
lines += bufferPush(window->buffer, COLS, false, Cold, 0, "");
|
lines += bufferPush(window->buffer, COLS, false, Cold, ts, "");
|
||||||
}
|
}
|
||||||
if (heat > window->heat) window->heat = heat;
|
if (heat > window->heat) window->heat = heat;
|
||||||
statusUpdate();
|
statusUpdate();
|
||||||
|
@ -787,7 +787,7 @@ static void showAuto(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void insertBlank(struct Window *window) {
|
static void insertBlank(struct Window *window) {
|
||||||
int lines = bufferPush(window->buffer, COLS, false, Cold, 0, "");
|
int lines = bufferPush(window->buffer, COLS, false, Cold, time(NULL), "");
|
||||||
window->unreadHard += lines;
|
window->unreadHard += lines;
|
||||||
if (window->scroll) {
|
if (window->scroll) {
|
||||||
windowScroll(window, lines);
|
windowScroll(window, lines);
|
||||||
|
|
Loading…
Reference in New Issue