Skip to content

Commit

Permalink
Use Oxford comma in input_context::get_desc() (#54345)
Browse files Browse the repository at this point in the history
J-Fields authored Jan 13, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d998786 commit 73825af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.cpp
Original file line number Diff line number Diff line change
@@ -1040,7 +1040,7 @@ std::string input_context::get_desc( const std::string &action_descriptor,
return pgettext( "keybinding", "Disabled" );
}

const std::string separator = _( " or " );
const std::string separator = inputs_to_show.size() > 2 ? _( ", or " ) : _( " or " );
std::string rval;
for( size_t i = 0; i < inputs_to_show.size(); ++i ) {
rval += inputs_to_show[i].long_description();

0 comments on commit 73825af

Please sign in to comment.