From a123725a12e948d78badb2cb686d38548f1c633b Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Thu, 6 Apr 2023 23:23:46 +0200 Subject: Implement window handling Also implement searching. fix undo boundaries when it checked for other save point, it used && instead of == which caused it to overwrite other types. Fix bytes vs chars bug in text_get_region --- test/text.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/text.c') diff --git a/test/text.c b/test/text.c index cb18df5..3092dcc 100644 --- a/test/text.c +++ b/test/text.c @@ -1,13 +1,13 @@ -#include "assert.h" -#include "stdio.h" -#include "test.h" - -#include "text.h" - #include #include #include +#include "dged/text.h" + +#include "assert.h" +#include "stdio.h" +#include "test.h" + void assert_line_eq(struct text_chunk line, const char *txt, const char *msg) { ASSERT(strncmp((const char *)line.text, txt, line.nbytes) == 0, msg); } -- cgit v1.2.3