Skip to content

Commit

Permalink
macOS: clThemedTextCtrl now generates the wxTE_PROCESS_ENTER event
Browse files Browse the repository at this point in the history
Built-in terminal: include '@' as a valid word char

Signed-off-by: Eran Ifrah <[email protected]>
  • Loading branch information
eranif committed Dec 25, 2024
1 parent 8bad38e commit 31fa988
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LiteEditor/BuildTabView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void BuildTabView::InitialiseView()
}

SetScrollWidthTracking(true);
SetWordChars(R"#(\:~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$/.-+)#");
SetWordChars(R"#(\:~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$/.-+@)#");
SetEditable(false);
}
#define PROCESSBUFFER_FMT_LINES_MAX 8192
Expand Down
2 changes: 1 addition & 1 deletion Plugin/clThemedTextCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ clThemedTextCtrl::clThemedTextCtrl(
{
wxUnusedVar(style);
#if USE_TEXT_CTRL
wxTextCtrl::Create(parent, id, value, wxDefaultPosition, wxDefaultSize, BORDER_STYLE);
wxTextCtrl::Create(parent, id, value, wxDefaultPosition, wxDefaultSize, BORDER_STYLE | wxTE_PROCESS_ENTER);
#else
clThemedTextCtrlBase::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, BORDER_STYLE);
ApplySettings();
Expand Down
2 changes: 1 addition & 1 deletion Plugin/wxTerminalCtrl/wxTerminalOutputCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void wxTerminalOutputCtrl::Initialise(const wxFont& font, const wxColour& bg_col
m_ctrl->SetLexer(wxSTC_LEX_CONTAINER);
m_ctrl->SetWrapMode(wxSTC_WRAP_CHAR);
m_ctrl->SetEditable(false);
m_ctrl->SetWordChars(R"#(\:~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$/.-+)#");
m_ctrl->SetWordChars(R"#(\:~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$/.-+@)#");
m_ctrl->IndicatorSetStyle(INDICATOR_HYPERLINK, wxSTC_INDIC_COMPOSITIONTHICK);
auto lexer = ColoursAndFontsManager::Get().GetLexer("terminal");
if (lexer) {
Expand Down

0 comments on commit 31fa988

Please sign in to comment.