diff --git a/README.asciidoc b/README.asciidoc index 83196ca5..dc55d8f0 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -19,7 +19,7 @@ Building Kakoune dependencies are: - * GCC >= 4.8 + * GCC >= 4.7 * boost * ncurses diff --git a/src/normal.cc b/src/normal.cc index fb5306e7..91aedfeb 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -92,7 +92,7 @@ void goto_commands(Context& context) case 'j': { context.push_jump(); - editor.select(editor.buffer().line_count() - 1, mode); + editor.select({editor.buffer().line_count() - 1, 0}, mode); break; } case 'e': @@ -103,7 +103,7 @@ void goto_commands(Context& context) if (context.has_window()) { auto line = context.window().position().line; - editor.select(line, mode); + editor.select({line, 0}, mode); } break; case 'b': @@ -111,7 +111,7 @@ void goto_commands(Context& context) { auto& window = context.window(); auto line = window.position().line + window.dimensions().line - 1; - editor.select(line, mode); + editor.select({line, 0}, mode); } break; case 'c': @@ -119,7 +119,7 @@ void goto_commands(Context& context) { auto& window = context.window(); auto line = window.position().line + window.dimensions().line / 2; - editor.select(line, mode); + editor.select({line, 0}, mode); } break; case 'a': diff --git a/src/selection.hh b/src/selection.hh index fb5f20dd..3db23546 100644 --- a/src/selection.hh +++ b/src/selection.hh @@ -72,7 +72,8 @@ private: struct SelectionList : std::vector { - using std::vector::vector; + SelectionList() = default; + SelectionList(Selection s) : std::vector{s} {} void update_insert(const Buffer& buffer, const BufferCoord& begin, const BufferCoord& end); void update_erase(const Buffer& buffer, const BufferCoord& begin, const BufferCoord& end);