From da009b0ef551de52dcce5d5b819bc579a6ef0882 Mon Sep 17 00:00:00 2001 From: aver-d Date: Thu, 22 Feb 2018 20:28:01 +0000 Subject: [PATCH] Fix typos in C++ string literals informations, dont, incrementaly, alignement --- src/commands.cc | 2 +- src/highlighter_group.cc | 2 +- src/main.cc | 4 ++-- src/normal.cc | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands.cc b/src/commands.cc index 183edcce..66696202 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -1122,7 +1122,7 @@ KeymapMode parse_keymap_mode(StringView str, const KeymapManager::UserModeList& const CommandDesc debug_cmd = { "debug", nullptr, - "debug : write some debug informations in the debug buffer\n" + "debug : write some debug information to the debug buffer\n" "existing commands: info, buffers, options, memory, shared-strings, profile-hash-maps, faces", ParameterDesc{{}, ParameterDesc::Flags::SwitchesOnlyAtStart, 1}, CommandFlags::None, diff --git a/src/highlighter_group.cc b/src/highlighter_group.cc index fb89e5f2..1b3ba415 100644 --- a/src/highlighter_group.cc +++ b/src/highlighter_group.cc @@ -27,7 +27,7 @@ void HighlighterGroup::fill_unique_ids(Vector& unique_ids) const void HighlighterGroup::add_child(HighlighterAndId&& hl) { if ((hl.second->passes() & passes()) != hl.second->passes()) - throw runtime_error{"Cannot add that highlighter to this group, passes dont match"}; + throw runtime_error{"Cannot add that highlighter to this group, passes don't match"}; hl.first = replace(hl.first, "/", ""); diff --git a/src/main.cc b/src/main.cc index 39b40ebd..e37db1e7 100644 --- a/src/main.cc +++ b/src/main.cc @@ -299,7 +299,7 @@ void register_options() reg.declare_option("BOM", "byte order mark to use when writing buffer", ByteOrderMark::None); reg.declare_option("incsearch", - "incrementaly apply search/select/split regex", + "incrementally apply search/select/split regex", true); reg.declare_option("autoinfo", "automatically display contextual help", @@ -308,7 +308,7 @@ void register_options() "automatically display possible completions for prompts", true); reg.declare_option("aligntab", - "use tab characters when possible for alignement", + "use tab characters when possible for alignment", false); reg.declare_option("ignored_files", "patterns to ignore when completing filenames", diff --git a/src/normal.cc b/src/normal.cc index 6518f9f8..bd07826c 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1740,7 +1740,7 @@ void combine_selections(Context& context, SelectionList list, Func func) else { if (list.size() != sels.size()) - throw runtime_error{"The two selection lists dont have the same number of elements"}; + throw runtime_error{"The two selection lists don't have the same number of elements"}; for (int i = 0; i < list.size(); ++i) combine_selection(sels.buffer(), list[i], sels[i], op); list.set_main_index(sels.main_index());