Cleanup some trailing whitespaces and double semicolon

This commit is contained in:
Maxime Coste 2018-07-26 21:56:34 +10:00
parent 737807dde2
commit 7cf3cbde8e
7 changed files with 7 additions and 7 deletions

View File

@ -87,7 +87,7 @@ kak$(suffix) : $(objects) .version.o
.version.o: .version.cc
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
.version.cc: FORCE
@printf "%s" 'namespace Kakoune { const char* version = "$(version)"; }' > .version.cc.tmp
@if cmp -s .version.cc.tmp .version.cc; then rm .version.cc.tmp; else mv .version.cc.tmp .version.cc; fi

View File

@ -98,7 +98,7 @@ void FaceRegistry::add_face(StringView name, StringView facedesc, bool override)
if (name == facedesc)
throw runtime_error(format("cannot alias face '{}' to itself", name));
for (auto it = m_faces.find(facedesc);
for (auto it = m_faces.find(facedesc);
it != m_faces.end() and not it->value.alias.empty();
it = m_faces.find(it->value.alias))
{

View File

@ -497,7 +497,7 @@ std::unique_ptr<Highlighter> create_dynamic_regex_highlighter(HighlighterParamet
std::decay_t<decltype(face_getter)>>>(
std::move(regex_getter), std::move(face_getter));
};
auto get_face = [faces](const Context& context){ return faces;; };
auto get_face = [faces](const Context& context){ return faces; };
CommandParser parser{params[0]};
auto token = parser.read_token(true);

View File

@ -289,7 +289,7 @@ public:
{
auto pop_if_single_command = on_scope_end([this] {
if (m_state == State::SingleCommand and enabled())
pop_mode();
pop_mode();
else if (m_state == State::SingleCommand)
m_state = State::PopOnEnabled;
});

View File

@ -837,7 +837,7 @@ void extend_to_next_matches(Context& context, const Regex& regex, int count)
--main_index;
}
if (new_sels.empty())
throw runtime_error{"All selections wrapped"};
throw runtime_error{"All selections wrapped"};
selections.set(std::move(new_sels), main_index);
new_sels.clear();

View File

@ -343,7 +343,7 @@ inline String option_to_string(const PrefixedList<P, T>& opt)
template<typename P, typename T>
inline PrefixedList<P, T> option_from_strings(Meta::Type<PrefixedList<P, T>>, ConstArrayView<String> strs)
{
return {option_from_string(Meta::Type<P>{}, strs[0]),
return {option_from_string(Meta::Type<P>{}, strs[0]),
option_from_strings(Meta::Type<Vector<T, MemoryDomain::Options>>{}, strs.subrange(1))};
}

View File

@ -368,7 +368,7 @@ private:
if (pos == config.end)
return StepResult::Failed;
return is_ctype((CharacterType)inst.param, *pos) ?
StepResult::Consumed : StepResult::Failed;;
StepResult::Consumed : StepResult::Failed;
case CompiledRegex::LineStart:
if (not is_line_start(pos, config))
return StepResult::Failed;