1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +00:00

HackStudio: Optionally pass line & column to open_file

This makes it easier to open a file at a specific location.
This commit is contained in:
Itamar 2021-08-27 16:18:00 +03:00 committed by Andreas Kling
parent 5cd030568f
commit 8fc9ec942e
3 changed files with 5 additions and 4 deletions

View file

@ -34,7 +34,8 @@ class HackStudioWidget : public GUI::Widget {
public:
virtual ~HackStudioWidget() override;
bool open_file(const String& filename);
bool open_file(String const& filename, size_t line = 0, size_t column = 0);
void close_file_in_all_editors(String const& filename);
void update_actions();