mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibLine: Use more descriptive names for row/column
The names x and y caused confusion because of their typical use as horiz/vert.
This commit is contained in:
parent
9b17bf3dcd
commit
aa3e440a58
Notes:
sideshowbarker
2024-07-19 05:45:58 +09:00
Author: https://github.com/alimpfard
Commit: aa3e440a58
Pull-request: https://github.com/SerenityOS/serenity/pull/2526
Issue: https://github.com/SerenityOS/serenity/issues/2525
Reviewed-by: https://github.com/awesomekling
4 changed files with 40 additions and 40 deletions
|
@ -264,11 +264,11 @@ private:
|
|||
set_origin(position[0], position[1]);
|
||||
}
|
||||
|
||||
void set_origin(int x, int y)
|
||||
void set_origin(int row, int col)
|
||||
{
|
||||
m_origin_x = x;
|
||||
m_origin_y = y;
|
||||
m_suggestion_display->set_origin(x, y, {});
|
||||
m_origin_row = row;
|
||||
m_origin_column = col;
|
||||
m_suggestion_display->set_origin(row, col, {});
|
||||
}
|
||||
|
||||
bool should_break_token(Vector<u32, 1024>& buffer, size_t index);
|
||||
|
@ -312,8 +312,8 @@ private:
|
|||
bool m_cached_prompt_valid { false };
|
||||
|
||||
// Exact position before our prompt in the terminal.
|
||||
size_t m_origin_x { 0 };
|
||||
size_t m_origin_y { 0 };
|
||||
size_t m_origin_row { 0 };
|
||||
size_t m_origin_column { 0 };
|
||||
|
||||
OwnPtr<SuggestionDisplay> m_suggestion_display;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue