From 52eab1c96a808cf9bf4fea62e577609602c28668 Mon Sep 17 00:00:00 2001 From: nytpu Date: Wed, 26 May 2021 00:05:25 -0600 Subject: change from int to long to accomodate longer files --- common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index e39cdc7..648fe82 100644 --- a/common.h +++ b/common.h @@ -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; }; -- cgit v1.2.3