diff options
author | Andreas Kling <kling@serenityos.org> | 2022-07-31 16:08:00 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-01 10:29:53 +0200 |
commit | 8690f36eb36021188e6a1a2c6a39d0b34d234f51 (patch) | |
tree | 5990cd33e5dd4823d19131ede025317f3dc1ee65 /Userland/Applications | |
parent | f80e19086ec28178fa8617b096696a510ba81dfd (diff) | |
download | serenity-8690f36eb36021188e6a1a2c6a39d0b34d234f51.zip |
CrashReporter: Turn off line wrapping in the various text editors
It's much nicer to look at a backtrace when it has one line per stack
frame instead of a random number of lines.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/CrashReporter/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/CrashReporter/main.cpp b/Userland/Applications/CrashReporter/main.cpp index e185503f5c..c439a68e83 100644 --- a/Userland/Applications/CrashReporter/main.cpp +++ b/Userland/Applications/CrashReporter/main.cpp @@ -245,6 +245,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto environment_text_editor = TRY(environment_tab->try_add<GUI::TextEditor>()); environment_text_editor->set_text(String::join('\n', environment)); environment_text_editor->set_mode(GUI::TextEditor::Mode::ReadOnly); + environment_text_editor->set_wrapping_mode(GUI::TextEditor::WrappingMode::NoWrap); environment_text_editor->set_should_hide_unnecessary_scrollbars(true); auto memory_regions_tab = TRY(tab_widget.try_add_tab<GUI::Widget>("Memory Regions")); @@ -254,6 +255,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto memory_regions_text_editor = TRY(memory_regions_tab->try_add<GUI::TextEditor>()); memory_regions_text_editor->set_text(String::join('\n', memory_regions)); memory_regions_text_editor->set_mode(GUI::TextEditor::Mode::ReadOnly); + memory_regions_text_editor->set_wrapping_mode(GUI::TextEditor::WrappingMode::NoWrap); memory_regions_text_editor->set_should_hide_unnecessary_scrollbars(true); memory_regions_text_editor->set_visualize_trailing_whitespace(false); @@ -317,6 +319,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto backtrace_text_editor = MUST(container->template try_add<GUI::TextEditor>()); backtrace_text_editor->set_text(backtrace.text); backtrace_text_editor->set_mode(GUI::TextEditor::Mode::ReadOnly); + backtrace_text_editor->set_wrapping_mode(GUI::TextEditor::WrappingMode::NoWrap); backtrace_text_editor->set_should_hide_unnecessary_scrollbars(true); full_backtrace.appendff("==== {} ====\n{}\n", backtrace.title, backtrace.text); } @@ -328,6 +331,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto cpu_registers_text_editor = MUST(container->template try_add<GUI::TextEditor>()); cpu_registers_text_editor->set_text(cpu_registers.text); cpu_registers_text_editor->set_mode(GUI::TextEditor::Mode::ReadOnly); + cpu_registers_text_editor->set_wrapping_mode(GUI::TextEditor::WrappingMode::NoWrap); cpu_registers_text_editor->set_should_hide_unnecessary_scrollbars(true); } |