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:
2025-11-28 11:31:40 -08:00
parent 7b20e9ee37
commit a9bcb0d36b
13 changed files with 937 additions and 1005 deletions

View File

@@ -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 */