mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Merge branch 'misc' into feature
This commit is contained in:
commit
cb930ab6b2
@ -414,6 +414,7 @@
|
||||
"Width" : 1280
|
||||
},
|
||||
"Edit Box" : {
|
||||
"Soft Line Break": false,
|
||||
"Font Face" : "",
|
||||
"Font Size" : 10
|
||||
},
|
||||
|
@ -414,6 +414,7 @@
|
||||
"Width" : 1280
|
||||
},
|
||||
"Edit Box" : {
|
||||
"Soft Line Break": false,
|
||||
"Font Face" : "",
|
||||
"Font Size" : 13
|
||||
},
|
||||
|
@ -211,7 +211,7 @@ void Interface(wxTreebook *book, Preferences *parent) {
|
||||
auto edit_box = p->PageSizer(_("Edit Box"));
|
||||
p->OptionAdd(edit_box, _("Enable call tips"), "App/Call Tips");
|
||||
p->OptionAdd(edit_box, _("Overwrite in time boxes"), "Subtitle/Time Edit/Insert Mode");
|
||||
p->CellSkip(edit_box);
|
||||
p->OptionAdd(edit_box, _("Shift+Enter adds \\n"), "Subtitle/Edit Box/Soft Line Break");
|
||||
p->OptionAdd(edit_box, _("Enable syntax highlighting"), "Subtitle/Highlight/Syntax");
|
||||
p->OptionBrowse(edit_box, _("Dictionaries path"), "Path/Dictionary");
|
||||
p->OptionFont(edit_box, "Subtitle/Edit Box/");
|
||||
|
@ -216,7 +216,7 @@ void SubsTextEditCtrl::OnKeyDown(wxKeyEvent &event) {
|
||||
auto sel_start = GetSelectionStart(), sel_end = GetSelectionEnd();
|
||||
wxCharBuffer old = GetTextRaw();
|
||||
std::string data(old.data(), sel_start);
|
||||
data.append("\\N");
|
||||
data.append(OPT_GET("Subtitle/Edit Box/Soft Line Break")->GetBool() ? "\\n" : "\\N");
|
||||
data.append(old.data() + sel_end, old.length() - sel_end);
|
||||
SetTextRaw(data.c_str());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user