mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Replaced GList by adding prev/next pointers to LINE_REC. This should make
some things faster and take a bit less memory. Also fixed an evil memory leak. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1611 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
dd37b9ca2c
commit
9eed52fa40
7 changed files with 135 additions and 117 deletions
|
|
@ -50,11 +50,11 @@ typedef struct {
|
|||
TEXT_BUFFER_CACHE_REC *cache;
|
||||
int ypos; /* cursor position - visible area is 0..height-1 */
|
||||
|
||||
GList *startline; /* line at the top of the screen */
|
||||
LINE_REC *startline; /* line at the top of the screen */
|
||||
int subline; /* number of "real lines" to skip from `startline' */
|
||||
|
||||
/* marks the bottom of the text buffer */
|
||||
GList *bottom_startline;
|
||||
LINE_REC *bottom_startline;
|
||||
int bottom_subline;
|
||||
|
||||
/* how many empty lines are in screen. a screenful when started
|
||||
|
|
@ -86,7 +86,7 @@ void textbuffer_view_resize(TEXT_BUFFER_VIEW_REC *view, int width, int height);
|
|||
void textbuffer_view_clear(TEXT_BUFFER_VIEW_REC *view);
|
||||
|
||||
#define textbuffer_view_get_lines(view) \
|
||||
((view)->buffer->lines)
|
||||
((view)->buffer->first_line)
|
||||
|
||||
/* Scroll the view up/down */
|
||||
void textbuffer_view_scroll(TEXT_BUFFER_VIEW_REC *view, int lines);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue