Skip to content

Commit

Permalink
[do not merge] comments
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed May 12, 2024
1 parent bbab682 commit 46b2866
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/editor/editor_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ void editor_display::clear_help_string()

void editor_display::set_help_string(const std::string& str)
{
// Always update the internal string so we can toggle its visibility back
// at any time without having to ask the current editor_palette.
help_string_ = str;

clear_help_string();
Expand Down
2 changes: 1 addition & 1 deletion src/editor/editor_display.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class editor_display : public display
/** Whether the help text is currently shown. */
bool help_string_enabled_ = true;

/** Current help string. */
/** Current help string, cached for easy visibility toggling. */
std::string help_string_;
};

Expand Down

0 comments on commit 46b2866

Please sign in to comment.