diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-12-17 04:07:09 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-12-17 04:07:49 +0000 |
| commit | 8dcffd8f5a4a29d89716c114214d24803fe93d9f (patch) | |
| tree | 68d43656cc3f7f9ebe001f281c1ac528f0f87ef3 /src/display_buffer.hh | |
| parent | 925d41f59672f2e4fad1355e880193f75dcfd952 (diff) | |
Initial, WIP spelling implementation
Add a ranges highlighter that takes a timestamped list of ranges and
associated face. Add a spell.kak file that uses aspell pipe interface
to fill a range-faces option.
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 177a5920..14e7044e 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -13,6 +13,9 @@ namespace Kakoune class Buffer; struct BufferRange{ ByteCoord begin, end; }; +String option_to_string(BufferRange range); +void option_from_string(StringView str, BufferRange& opt); + inline bool operator==(const BufferRange& lhs, const BufferRange& rhs) { return lhs.begin == rhs.begin and lhs.end == rhs.end; |
