aboutsummaryrefslogtreecommitdiff
path: root/vterm-module.h
diff options
context:
space:
mode:
authorLukas Fürmetz <fuermetz@mailbox.org>2018-10-25 22:45:10 +0200
committerLukas Fürmetz <fuermetz@mailbox.org>2018-10-25 22:45:10 +0200
commit9738bb97f5a269b1a68a9e785236eb2b36a37562 (patch)
tree151dc981b39e27d565165d2b29ed2dbdc0637476 /vterm-module.h
parentfbe7a522e3a801176d2d6180507a8cbd99d639ef (diff)
clang-format
Diffstat (limited to 'vterm-module.h')
-rw-r--r--vterm-module.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/vterm-module.h b/vterm-module.h
index 0aa88dc..3e96da6 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -12,17 +12,16 @@ typedef struct {
VTermScreenCell cells[];
} ScrollbackLine;
-#define SB_MAX 100000 // Maximum 'scrollback' value.
+#define SB_MAX 100000 // Maximum 'scrollback' value.
static bool refresh_pending = false;
#ifndef MIN
-# define MIN(X, Y) ((X) < (Y) ? (X) : (Y))
+#define MIN(X, Y) ((X) < (Y) ? (X) : (Y))
#endif
#ifndef MAX
-# define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
+#define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
#endif
-
typedef struct Term {
VTerm *vt;
VTermScreen *vts;
@@ -30,17 +29,16 @@ typedef struct Term {
// - convert VTermScreen cell arrays into utf8 strings
// - receive data from libvterm as a result of key presses.
char textbuf[0x1fff];
- ScrollbackLine **sb_buffer; // Scrollback buffer storage for libvterm
- size_t sb_current; // number of rows pushed to sb_buffer
- size_t sb_size; // sb_buffer size
+ ScrollbackLine **sb_buffer; // Scrollback buffer storage for libvterm
+ size_t sb_current; // number of rows pushed to sb_buffer
+ size_t sb_size; // sb_buffer size
// "virtual index" that points to the first sb_buffer row that we need to
// push to the terminal buffer when refreshing the scrollback. When negative,
// it actually points to entries that are no longer in sb_buffer (because the
// window height has increased) and must be deleted from the terminal buffer
int sb_pending;
-
- int invalid_start, invalid_end; // invalid rows in libvterm screen
+ int invalid_start, invalid_end; // invalid rows in libvterm screen
// Flag to indicate cursor is visible
bool cursor_visible;