Small refactoring for a more intuitive config.

This commit is contained in:
Millesimus 2021-08-21 17:21:44 +02:00 committed by Daniel Gultsch
parent e850900b40
commit c81c8a62b3
2 changed files with 2 additions and 2 deletions

View File

@ -205,5 +205,5 @@ public final class Config {
// How deep nested quotes should be displayed. '2' means one quote nested in another.
public static final int QUOTE_MAX_DEPTH = 3;
// How deep nested quotes should be created on quoting a message.
public static final int QUOTING_MAX_DEPTH = QUOTE_MAX_DEPTH - 1;
public static final int QUOTING_MAX_DEPTH = QUOTE_MAX_DEPTH;
}

View File

@ -41,7 +41,7 @@ public class QuoteHelper {
if (isPositionQuoteCharacter(line, i)) {
nestingDepth++;
}
if (nestingDepth > (Config.QUOTING_MAX_DEPTH)) {
if (nestingDepth > (Config.QUOTING_MAX_DEPTH - 1)) {
return true;
}
}