From 13a6aa2fbd479b36738b09b19c30fd4c58daf678 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 28 May 2020 20:04:32 +0200 Subject: [PATCH 1/2] refactor: remove extra semicolons --- src/highlighters.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index ecc84481..c11d708a 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -57,7 +57,7 @@ void highlight_range(DisplayBuffer& display_buffer, for (auto& line : display_buffer.lines()) { auto& range = line.range(); - if (range.end <= begin or end < range.begin) + if (range.end <= begin or end < range.begin) continue; for (auto atom_it = line.begin(); atom_it != line.end(); ++atom_it) @@ -1568,7 +1568,7 @@ private: static bool is_valid(Buffer& buffer, BufferCoord c) { return c.line >= 0 and c.column >= 0 and c.line < buffer.line_count() and c.column <= buffer[c.line].length(); - }; + } static bool is_fully_selected(const SelectionList& sels, const InclusiveBufferRange& range) { @@ -1576,7 +1576,7 @@ private: if (it == sels.end()) return true; return it->min() > range.last or (it->min() <= range.first and it->max() >= range.last); - }; + } void do_highlight(HighlightContext context, DisplayBuffer& display_buffer, BufferRange) override { From 61f474fd9d1aa34b5176ad35045e2d7c1680ff8f Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 28 May 2020 21:40:47 +0200 Subject: [PATCH 2/2] Fix typo in readme --- test/README.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/README.asciidoc b/test/README.asciidoc index cd42f4ae..a6c841a1 100644 --- a/test/README.asciidoc +++ b/test/README.asciidoc @@ -47,7 +47,7 @@ and should contain the initial text loaded into the input buffer for editing by the +cmd+ key sequence. +ui-in+ is optional -and should contain the json-rpc commands sent by the UI at startup. +and should contain the json-rpc commands sent to the UI at startup. +out+ is optional and should contain the expected text generated by the +cmd+ key sequence.