Skip to content

🐛 {line} placeholder is completely broken #2000

@Callisto95

Description

@Callisto95

Raw git (--no-pager):

diff --git a/blatt4/src/app/init.cpp b/blatt4/src/app/init.cpp
index 3fcf7f1..3616702 100644
--- a/blatt4/src/app/init.cpp
+++ b/blatt4/src/app/init.cpp
@@ -76,6 +76,7 @@ bool initializeShip(PlayerSea & playerSea, unsigned int size)
        } catch (PlayerSea::ShipOutsideSeaBoundsException const&) {
                cout << "Das Schiff muss im Wasser liegen (" << PlayerSea::getSeaBounds() << ")." << endl;
        }
+       //A comment
 
        return false;
 }

I've just found Delta and configured it to embed links. However, the links it created were "missing" the line parameter. With git show | delta | cat -A I could see that the line parameter was there, but broken.

The config is hyperlinks-file-link-format = "clion://open?file={path}&line={line}"

Delta creates a link line with the format ^[[34mM-NM-^T ^[]8;;clion://open?file=/run/media/callisto/Data-2TB/workspace/C++/Gruppe_Lee1E/blatt4/src/app/init.cpp&line=^[\blatt4/src/app/init.cpp^[]8;;^[\^[[0m$, i.e. 'line' is completely broken and doesn't even have the correct line.

The regular (non raw) output looks completely fine.

I'm using KDE's Konsole as a terminal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions