handle the case of using -pk pair/only on

This commit is contained in:
Axel Kohlmeyer
2022-10-08 10:33:08 -04:00
parent 7c9666798e
commit 5582dbc3d3
2 changed files with 13 additions and 11 deletions

View File

@ -831,7 +831,7 @@ int Input::execute_command()
// try suffixed version first
std::string mycmd = command;
if (lmp->suffix_enable) {
if (lmp->suffix_enable && lmp->suffix) {
mycmd = command + std::string("/") + lmp->suffix;
if (command_map->find(mycmd) == command_map->end()) {
if (lmp->suffix2) {