From 25f25df8f5de2692add4b7f9244db397068cfe7f Mon Sep 17 00:00:00 2001 From: Delapouite Date: Tue, 26 Sep 2017 12:51:52 +0200 Subject: [PATCH] Add selections_desc format to select autoinfo --- README.asciidoc | 2 +- src/commands.cc | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index efea14f3..9aa34dc7 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -798,7 +798,7 @@ Some of Kakoune state is available through environment variables: the selection contents are escaped with a backslash. * `kak_selection_desc`: range of the main selection, represented as `anchor,cursor`; anchor and cursor are in this format: `line.column` - * `kak_selections_desc`: range of the selecations separated by colons + * `kak_selections_desc`: range of the selections separated by colons * `kak_bufname`: name of the current buffer * `kak_buffile`: full path of the file or same as `kak_bufname` when there's no associated file diff --git a/src/commands.cc b/src/commands.cc index 96839a85..e96f8deb 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -1989,7 +1989,7 @@ const CommandDesc set_face_cmd = { "attributes is a combination of:\n" " u: underline, i: italic, b: bold, r: reverse,\n" " B: blink, d: dim, e: exclusive\n" - "facespec can as well just be the name of another face" , + "facespec can as well just be the name of another face", ParameterDesc{{}, ParameterDesc::Flags::None, 2, 2}, CommandFlags::None, CommandHelper{}, @@ -2037,7 +2037,9 @@ const CommandDesc set_register_cmd = { const CommandDesc select_cmd = { "select", nullptr, - "select : select given selections", + "select : select given selections\n" + "\n" + "selections_desc format is .,.:...", single_param, CommandFlags::None, CommandHelper{},