aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-05-26 00:05:25 -0600
committernytpu <alex@nytpu.com>2021-05-26 14:27:19 -0600
commit52eab1c96a808cf9bf4fea62e577609602c28668 (patch)
tree488f530bc901dfe10d3054327c868f68db35c166
parentfix bug when ioctl returns 0 (diff)
downloaded-52eab1c96a808cf9bf4fea62e577609602c28668.tar.bz2
ed-52eab1c96a808cf9bf4fea62e577609602c28668.zip
change from int to long to accomodate longer files
-rw-r--r--common.h6
1 files changed, 3 insertions, 3 deletions
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;
};