summaryrefslogtreecommitdiff
path: root/content/handlers/text/textplain.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-05-23 21:17:42 +0100
committerVincent Sanders <vince@kyllikki.org>2020-05-23 23:00:08 +0100
commitcfe57002febe0f58dfc87f0173ad42126f1362f4 (patch)
treebf77d4096f3d2c8339d20f8efef6ece8130eab8a /content/handlers/text/textplain.c
parente65e41e2d6efccba983cd63aadfb10b5b4a935b2 (diff)
downloadnetsurf-cfe57002febe0f58dfc87f0173ad42126f1362f4.tar.gz
netsurf-cfe57002febe0f58dfc87f0173ad42126f1362f4.tar.bz2
remove unused css length usage in selection
Diffstat (limited to 'content/handlers/text/textplain.c')
-rw-r--r--content/handlers/text/textplain.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/handlers/text/textplain.c b/content/handlers/text/textplain.c
index 275efda83..5142291bb 100644
--- a/content/handlers/text/textplain.c
+++ b/content/handlers/text/textplain.c
@@ -42,6 +42,7 @@
#include "content/content_factory.h"
#include "content/hlcache.h"
#include "content/textsearch.h"
+#include "content/handlers/css/utils.h"
#include "desktop/selection.h"
#include "desktop/gui_internal.h"
@@ -1227,7 +1228,7 @@ textplain_open(struct content *c,
text->bw = bw;
/* text selection */
- selection_init(&text->sel, NULL, NULL);
+ selection_init(&text->sel, NULL);
return NSERROR_OK;
}
@@ -1579,7 +1580,7 @@ textplain_create_selection(struct content *c, struct selection **sel_out)
return NSERROR_NOMEM;
}
- selection_init(sel, NULL, NULL);
+ selection_init(sel, NULL);
*sel_out = sel;
return NSERROR_OK;