Skip to content

Commit

Permalink
Fixed: #3557
Browse files Browse the repository at this point in the history
Signed-off-by: Eran Ifrah <[email protected]>
  • Loading branch information
eranif committed Jan 1, 2025
1 parent dd85402 commit 3f8fdba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions LiteEditor/BuildTabView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "StringUtils.h"
#include "clAnsiEscapeCodeColourBuilder.hpp"
#include "clColours.h"
#include "clSTCHelper.hpp"
#include "clWorkspaceManager.h"
#include "codelite_events.h"
#include "dirsaver.h"
Expand Down Expand Up @@ -478,6 +479,8 @@ void BuildTabView::SetLineMarker(size_t line)
ClearSelections();
MarkerDeleteAll(LINE_MARKER);
MarkerAdd(line, LINE_MARKER);
// Bring the error line into the view
clSTCHelper::CenterLine(this, line);
}

void BuildTabView::OpenEditor(const wxString& filename, int line, int col, const wxString& wd)
Expand Down Expand Up @@ -558,7 +561,8 @@ void BuildTabView::OnContextMenu(wxContextMenuEvent& e)
SelectAll();
},
XRCID("buildtabview_select_all"));
menu.Bind(wxEVT_UPDATE_UI, [this](wxUpdateUIEvent& e) { e.Enable(GetLength() > 0); }, XRCID("buildtabview_select_all"));
menu.Bind(
wxEVT_UPDATE_UI, [this](wxUpdateUIEvent& e) { e.Enable(GetLength() > 0); }, XRCID("buildtabview_select_all"));

menu.Bind(
wxEVT_MENU,
Expand All @@ -569,7 +573,8 @@ void BuildTabView::OnContextMenu(wxContextMenuEvent& e)
SetEditable(false);
},
XRCID("buildtabview_clear_all"));
menu.Bind(wxEVT_UPDATE_UI, [this](wxUpdateUIEvent& e) { e.Enable(GetLength() > 0); }, XRCID("buildtabview_clear_all"));
menu.Bind(
wxEVT_UPDATE_UI, [this](wxUpdateUIEvent& e) { e.Enable(GetLength() > 0); }, XRCID("buildtabview_clear_all"));
PopupMenu(&menu);
}

Expand Down

0 comments on commit 3f8fdba

Please sign in to comment.