CodeEditor, ide: Word wrap

git-svn-id: svn://ultimatepp.org/upp/trunk@11473 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-11-17 08:03:36 +00:00
parent a70d0b7d4a
commit 5dff5fc989
8 changed files with 61 additions and 12 deletions

View file

@ -184,12 +184,10 @@ void Ide::InsertInclude(Bar& bar)
bar.Add("All #includes", THISBACK1(InsertText, all));
}
void Ide::InsertAdvanced(Bar& bar)
void Ide::ToggleWordwrap()
{
bool b = !editor.IsReadOnly();
bar.Add(b, "Insert", THISBACK(InsertMenu));
bar.Add(b, "Insert #include", THISBACK(InsertInclude));
bar.Add(b, "Advanced", THISBACK(EditSpecial));
wordwrap = !wordwrap;
SetupEditor();
}
void Ide::EditorMenu(Bar& bar)