diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/src/ts/modals/custom-text.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/src/ts/modals/custom-text.ts b/frontend/src/ts/modals/custom-text.ts index 37b07ae3a..ec0cd14eb 100644 --- a/frontend/src/ts/modals/custom-text.ts +++ b/frontend/src/ts/modals/custom-text.ts @@ -369,7 +369,10 @@ function apply(): void { CustomText.setPipeDelimiter(state.customTextPipeDelimiter); CustomText.setText(text); - if (state.customTextLimits.word !== "") { + if (state.customTextMode === "simple" && state.customTextPipeDelimiter) { + CustomText.setLimitMode("section"); + CustomText.setLimitValue(text.length); + } else if (state.customTextLimits.word !== "") { CustomText.setLimitMode("word"); CustomText.setLimitValue(parseInt(state.customTextLimits.word)); } else if (state.customTextLimits.time !== "") { |