diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-31 10:01:39 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-31 10:01:39 -0700 |
commit | 0d3169ef70032559e201a500aff2197a2854aa72 (patch) | |
tree | 89971815f95f8826ad1eee19985147d0635ca2ea /reader.h | |
parent | fe3b439e31ce893d9345112e95a031aa5ec11183 (diff) |
Run restyle.sh to enforce style rules.
Diffstat (limited to 'reader.h')
-rw-r--r-- | reader.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -25,45 +25,45 @@ class history_t; /* Helper class for storing a command line */ class editable_line_t { - public: - +public: + /** The command line */ wcstring text; - + /** The current position of the cursor in the command line */ size_t position; - + const wcstring &get_text() const { return text; } - + /* Gets the length of the text */ size_t size() const { return text.size(); } - + bool empty() const { return text.empty(); } - + void clear() { text.clear(); position = 0; } - + wchar_t at(size_t idx) { return text.at(idx); } - + editable_line_t() : text(), position(0) { } - + /* Inserts the string at the cursor position */ void insert_string(const wcstring &str); }; |