mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 12:52:29 +08:00
Add a category for screen repainting
This commit is contained in:
parent
b0c2eda3b4
commit
8355285736
|
@ -103,6 +103,8 @@ class category_list_t {
|
|||
category_t reader{L"reader", L"The interactive reader/input system"};
|
||||
category_t complete{L"complete", L"The completion system"};
|
||||
category_t path{L"path", L"Searching/using paths"};
|
||||
|
||||
category_t screen{L"screen", L"Screen repaints"};
|
||||
};
|
||||
|
||||
/// The class responsible for logging.
|
||||
|
|
|
@ -1000,6 +1000,8 @@ void s_write(screen_t *s, const wcstring &left_prompt, const wcstring &right_pro
|
|||
const wcstring &commandline, size_t explicit_len,
|
||||
const std::vector<highlight_spec_t> &colors, const std::vector<int> &indent,
|
||||
size_t cursor_pos, const page_rendering_t &pager, bool cursor_is_within_pager) {
|
||||
static relaxed_atomic_t<uint32_t> s_repaints{0};
|
||||
FLOGF(screen, "Repaint %u", (unsigned)++s_repaints);
|
||||
screen_data_t::cursor_t cursor_arr;
|
||||
|
||||
// Turn the command line into the explicit portion and the autosuggestion.
|
||||
|
|
Loading…
Reference in New Issue
Block a user