diff options
author | nytpu <alex@nytpu.com> | 2021-05-26 00:05:25 -0600 |
---|---|---|
committer | nytpu <alex@nytpu.com> | 2021-05-26 14:27:19 -0600 |
commit | 52eab1c96a808cf9bf4fea62e577609602c28668 (patch) | |
tree | 488f530bc901dfe10d3054327c868f68db35c166 /common.h | |
parent | fix bug when ioctl returns 0 (diff) | |
download | ed-52eab1c96a808cf9bf4fea62e577609602c28668.tar.bz2 ed-52eab1c96a808cf9bf4fea62e577609602c28668.zip |
change from int to long to accomodate longer files
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,20 +20,20 @@ #define DEFAULT_WIDTH 80 struct Row { - int idx; // Row number (zero-based) + long idx; // Row number (zero-based) int size; // Size of row (including trailing \n\0) char *chars; // Row content }; // doubles as an editor state/editor config struct as well struct Buffer { - int crow; // current row address + long crow; // current row address int scols; // number of columns we can display on screen char *filename; bool dirty; // has the buffer been modified since last write? - int numrows; + long numrows; struct Row *rows; }; |