mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
editor: fix word wrap settings in simple editor
This commit is contained in:
@@ -211,6 +211,10 @@ class ToggleWordWrapController extends Disposable implements IEditorContribution
|
||||
// in the settings editor...
|
||||
return;
|
||||
}
|
||||
if (this.editor.isSimpleWidget) {
|
||||
// in a simple widget...
|
||||
return;
|
||||
}
|
||||
// Ensure correct word wrap settings
|
||||
const newModel = this.editor.getModel();
|
||||
if (!newModel) {
|
||||
|
||||
Reference in New Issue
Block a user