Migrate history.c

This commit is contained in:
Kovid Goyal
2017-08-28 14:54:32 +05:30
parent 052fd46ff9
commit 564010c7cd
4 changed files with 45 additions and 44 deletions

View File

@@ -14,12 +14,6 @@ lineptr(LineBuf *linebuf, index_type y) {
return linebuf->buf + y * linebuf->xnum;
}
static inline void
clear_chars_in_line(Cell *cells, index_type xnum, char_type ch) {
char_type c = (1 << ATTRS_SHIFT) | ch;
for (index_type i = 0; i < xnum; i++) cells[i].ch = c;
}
static inline void
clear_chars_to(LineBuf* linebuf, index_type y, char_type ch) {
clear_chars_in_line(lineptr(linebuf, y), linebuf->xnum, ch);