Skip to content

Commit

Permalink
Update markdown wordwrap for new wordwrap settings. Fixes #25357
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Apr 27, 2017
1 parent 456d58d commit 891bb76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/markdown/src/previewContentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class MarkdownPreviewConfig {
const markdownConfig = vscode.workspace.getConfiguration('markdown');

this.scrollBeyondLastLine = editorConfig.get<boolean>('scrollBeyondLastLine', false);
this.wordWrap = editorConfig.get<boolean>('wordWrap', false);
this.wordWrap = editorConfig.get<string>('wordWrap', 'off') !== 'off';

this.previewFrontMatter = markdownConfig.get<string>('previewFrontMatter', 'hide');
this.scrollPreviewWithEditorSelection = !!markdownConfig.get<boolean>('preview.scrollPreviewWithEditorSelection', true);
Expand Down

0 comments on commit 891bb76

Please sign in to comment.