Release v0.6.21: skip unchanged layouts during conversion

This commit is contained in:
2026-10-31 11:39:19 +02:00
parent 4c5275631c
commit 64a04b4382
11 changed files with 52 additions and 16 deletions
+1 -5
View File
@@ -1202,11 +1202,7 @@ void App::transform(int command, int snippet)
chord(VK_RIGHT);
return;
}
int source = detect(text, available, hint);
if (source < 0)
source = hint;
auto it = std::find(cycle.begin(), cycle.end(), source);
to = it == cycle.end() || ++it == cycle.end() ? cycle.front() : *it;
to = nextConversionLayout(text, available, cycle, hint);
}
result = convertTo(text, available, to, hint);
}