Major codebase cleanup and overhaul.
+ editor removes per-buffer fields. + switching from internal use of 'int' to 'size_t'. + deleting old code + double checking relevancy of comments. A lot has changed in 5 years, even more so in the past week. + fixing a few vestigal memory errors from the overhaul. + fixing search behavior
This commit is contained in:
14
buffer.h
14
buffer.h
@@ -1,19 +1,19 @@
|
||||
#ifndef BUFFER_H
|
||||
#define BUFFER_H
|
||||
#ifndef KE_BUFFER_H
|
||||
#define KE_BUFFER_H
|
||||
|
||||
#include "abuf.h"
|
||||
|
||||
|
||||
typedef struct buffer {
|
||||
int curx, cury;
|
||||
int rx;
|
||||
int nrows;
|
||||
int rowoffs, coloffs;
|
||||
size_t curx, cury;
|
||||
size_t rx;
|
||||
size_t nrows;
|
||||
size_t rowoffs, coloffs;
|
||||
abuf *row;
|
||||
char *filename;
|
||||
int dirty;
|
||||
int mark_set;
|
||||
int mark_curx, mark_cury;
|
||||
size_t mark_curx, mark_cury;
|
||||
} buffer;
|
||||
|
||||
/* Access current buffer and convenient aliases for file-specific fields */
|
||||
|
||||
Reference in New Issue
Block a user