summaryrefslogtreecommitdiff
path: root/src/textbuf_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/textbuf_type.h')
-rw-r--r--src/textbuf_type.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/textbuf_type.h b/src/textbuf_type.h
index b9d3d1a34..611d7e443 100644
--- a/src/textbuf_type.h
+++ b/src/textbuf_type.h
@@ -14,6 +14,7 @@
#include "string_type.h"
#include "strings_type.h"
+#include "string_base.h"
/**
* Return values for Textbuf::HandleKeypress
@@ -61,6 +62,8 @@ struct Textbuf {
void UpdateSize();
private:
+ StringIterator *char_iter;
+
bool CanDelChar(bool backspace);
WChar GetNextDelChar(bool backspace);
void DelChar(bool backspace);
@@ -69,6 +72,7 @@ private:
bool CanMoveCaretRight();
WChar MoveCaretRight();
+ void UpdateStringIter();
void UpdateWidth();
void UpdateCaretPosition();
};