Skip to content

Commit 01a1de1

Browse files
committed
fix: use correct property name
1 parent 052586f commit 01a1de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/flowingcode/vaadin/addons/syntaxhighlighter/BaseSyntaxHighlighter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ public class BaseSyntaxHighlighter extends ReactAdapterComponent implements HasS
1515
* @return true if the wrapLines feature is enabled
1616
*/
1717
public boolean isWrapLines() {
18-
return getState("wrapLines", Boolean.class);
18+
return getState("wrapLongLines", Boolean.class);
1919
}
2020

2121
/**
2222
* Enable or disable the wrapLines feature
2323
* @param wrapLines boolean to enable or disable the wrapLines feature
2424
*/
2525
public void setWrapLines(boolean wrapLines) {
26-
setState("wrapLines", wrapLines);
26+
setState("wrapLongLines", wrapLines);
2727
}
2828

2929
/**

0 commit comments

Comments
 (0)