2 visor - lightweight system-independent embeddable text editor framework
3 Copyright (C) 2019 John Tsiombikas <nuclear@member.fsf.org>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>.
24 struct vi_fileops fop;
25 struct vi_buffer *buflist; /* circular linked list of buffers cur first */
30 int term_width, term_height;
36 struct vi_buffer *next, *prev;
38 vi_addr cursor, view_start;
45 unsigned long orig_size;
47 int add_size, add_max;
49 struct vi_span *spans;
50 int num_spans, max_spans;
53 enum { SPAN_ORIG, SPAN_ADD };