Skip to content

Commit 769407b

Browse files
amedoraRokt33r
authored andcommitted
add "Wrap Line" button
1 parent e7615ed commit 769407b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

browser/main/Detail/SnippetNoteDetail.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,12 @@ class SnippetNoteDetail extends React.Component {
929929
size: {config.editor.indentSize} 
930930
<i className='fa fa-caret-down' />
931931
</button>
932+
<button
933+
onClick={(e) => this.handleWrapLineButtonClick(e)}
934+
>
935+
Wrap Line: {config.editor.lineWrapping ? 'on' : 'off'}&nbsp;
936+
<i className='fa fa-caret-down' />
937+
</button>
932938
</div>
933939

934940
<StatusBar

0 commit comments

Comments
 (0)