aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-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;
};