From 06d9854e15af5b545718381c771f3f1fc22a445b Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 15 Sep 2020 09:59:16 +0200 Subject: [PATCH] Make terminal link tag higher priority than colored tags --- src/terminal.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/terminal.cpp b/src/terminal.cpp index 4e10735..318fe66 100644 --- a/src/terminal.cpp +++ b/src/terminal.cpp @@ -18,12 +18,6 @@ Terminal::Terminal() : Source::SearchView() { bold_tag = get_buffer()->create_tag(); bold_tag->property_weight() = Pango::WEIGHT_ULTRAHEAVY; - link_tag = get_buffer()->create_tag(); - link_tag->property_underline() = Pango::Underline::UNDERLINE_SINGLE; - - invisible_tag = get_buffer()->create_tag(); - invisible_tag->property_invisible() = true; - red_tag = get_buffer()->create_tag(); green_tag = get_buffer()->create_tag(); yellow_tag = get_buffer()->create_tag(); @@ -32,6 +26,12 @@ Terminal::Terminal() : Source::SearchView() { cyan_tag = get_buffer()->create_tag(); gray_tag = get_buffer()->create_tag(); + link_tag = get_buffer()->create_tag(); + link_tag->property_underline() = Pango::Underline::UNDERLINE_SINGLE; + + invisible_tag = get_buffer()->create_tag(); + invisible_tag->property_invisible() = true; + link_mouse_cursor = Gdk::Cursor::create(Gdk::CursorType::HAND1); default_mouse_cursor = Gdk::Cursor::create(Gdk::CursorType::XTERM);