summaryrefslogtreecommitdiff
path: root/src/commands.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-05-17 19:35:54 +0100
committerMaxime Coste <mawww@kakoune.org>2017-05-17 19:40:52 +0100
commitdfaafcd49a34f55bc832da96ab365e1c4bb3350a (patch)
treeb086525a5edb2749027e64cb3e7abac78642d63e /src/commands.cc
parent44d2db2706da29fa9aad2e0a882bb850d7c8168b (diff)
Rename range-faces to range-specs
range-faces are now used to replace-range highlighters, where the string part is not interpretted as a face but as a display line, so the name was not relevant anymore.
Diffstat (limited to 'src/commands.cc')
-rw-r--r--src/commands.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commands.cc b/src/commands.cc
index d9ab5a2e..c32c29de 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -48,9 +48,9 @@ StringView option_type_name(Meta::Type<TimestampedList<LineAndFlag>>)
return "line-flags";
}
-StringView option_type_name(Meta::Type<TimestampedList<RangeAndFace>>)
+StringView option_type_name(Meta::Type<TimestampedList<RangeAndString>>)
{
- return "range-faces";
+ return "range-specs";
}
namespace
@@ -1335,7 +1335,7 @@ const CommandDesc declare_option_cmd = {
" str-list: list of character strings\n"
" completions: list of completion candidates\n"
" line-flags: list of line flags\n"
- " range-faces: list of range faces\n",
+ " range-specs: list of range specs\n",
ParameterDesc{
{ { "hidden", { false, "do not display option name when completing" } },
{ "docstring", { true, "specify option description" } } },
@@ -1346,7 +1346,7 @@ const CommandDesc declare_option_cmd = {
make_completer(
[](const Context& context, CompletionFlags flags,
const String& prefix, ByteCount cursor_pos) -> Completions {
- auto c = {"int", "bool", "str", "regex", "int-list", "str-list", "completions", "line-flags", "range-faces"};
+ auto c = {"int", "bool", "str", "regex", "int-list", "str-list", "completions", "line-flags", "range-specs"};
return { 0_byte, cursor_pos, complete(prefix, cursor_pos, c) };
}),
[](const ParametersParser& parser, Context& context, const ShellContext&)
@@ -1377,8 +1377,8 @@ const CommandDesc declare_option_cmd = {
opt = &reg.declare_option<CompletionList>(parser[1], docstring, {}, flags);
else if (parser[0] == "line-flags")
opt = &reg.declare_option<TimestampedList<LineAndFlag>>(parser[1], docstring, {}, flags);
- else if (parser[0] == "range-faces")
- opt = &reg.declare_option<TimestampedList<RangeAndFace>>(parser[1], docstring, {}, flags);
+ else if (parser[0] == "range-specs")
+ opt = &reg.declare_option<TimestampedList<RangeAndString>>(parser[1], docstring, {}, flags);
else
throw runtime_error(format("unknown type {}", parser[0]));