summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-05-27 09:08:36 +0100
committerMaxime Coste <mawww@kakoune.org>2017-05-27 09:29:51 +0100
commite97f23f2be57359fef86efbf74e12cec0f151fa8 (patch)
tree162c59a44e39ac14341a5dbea4bee9c87e3919e0 /src/normal.cc
parentd8cc50ed796d1b0c6ed087bb812e3f5480ea609b (diff)
Use more precise wording for object selection info box
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 119d11d7..e363fa81 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -1052,7 +1052,8 @@ void select_object(Context& context, NormalParams params)
auto get_title = [] {
const auto whole_flags = (ObjectFlags::ToBegin | ObjectFlags::ToEnd);
const bool whole = (flags & whole_flags) == whole_flags;
- return format("select {}{}object{}",
+ return format("{} {}{}surrounding object{}",
+ mode == SelectMode::Extend ? "extend" : "select",
whole ? "" : "to ",
flags & ObjectFlags::Inner ? "inner " : "",
whole ? "" : (flags & ObjectFlags::ToBegin ? " begin" : " end"));