Merge branch 'refs/heads/char_encode'

# Conflicts:
#	include/builtins.h
#	include/data.h
#	include/editor_op.h
#	include/file_io.h
#	include/input.h
#	include/row_op.h
#	install.sh
#	main.c
#	meson.build
#	src/builtins.c
#	src/editor_op.c
#	src/file_io.c
#	src/init.c
#	src/input.c
#	src/output.c
#	src/row_op.c
This commit is contained in:
2026-05-04 00:31:48 +02:00
16 changed files with 350 additions and 330 deletions
+13 -8
View File
@@ -8,18 +8,16 @@
#include "lisp.h"
/**
* \struct erow
* \struct row_t
* \brief Store one editor row
* \param
* */
typedef struct frow {
typedef struct row {
int size; /**< Size of the line */
int rsize; /**< Size of the render line */
int cap; /**< Size of the render line */
char *chars; /**< Characters of the line */
char *render; /**< The actual line we will print */
} frow;
} row_t;
/**
* @brief Split modes for screen layout
@@ -41,7 +39,7 @@ typedef struct {
int width; // Width of this pane
int cursor_x; // Local cursor x in this pane
int cursor_y; // Local cursor y in this pane
int rx, ry;
int rx, ry;
int row_offset; // Scroll offset for rows
int col_offset; // Scroll offset for columns
int is_active; // Is this pane currently active
@@ -113,11 +111,17 @@ struct buffer_t {
* \brief Containing our editor state.
*/
struct editorConfig {
int cursor_x, cursor_y; /**< Cursor position */
int rx; /**< Position in the render*/
int row_offset; /**< Position scroll of lines */
int col_offset; /**< Position scroll of colomns*/
int screenrows; /**< Terminal height*/
int screencols; /**< Terminal width*/
ScreenLayout layout;
int numrows; /**< Number of rows contained */
row_t *rows; /**< Store all the rows printed */
int dirty;
int prefix_state;
char status_msg[80];
@@ -158,4 +162,5 @@ struct abuf {
extern struct editorConfig E;
#endif