]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Replace '.' with ':' in SourceReference.to_string()
authorLorenz Wildberg <lorenz@wild-fisch.de>
Tue, 27 Sep 2022 18:05:59 +0000 (20:05 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 26 Feb 2023 15:19:59 +0000 (16:19 +0100)
This makes it possible to click on the file path and let the location
being opened in the editor.

vala/valasourcereference.vala

index d0680f7058ba345b2ddb013996d3a8b246af1ab9..4fcd00e565dc2d02440344240d155af31f2f9638 100644 (file)
@@ -84,6 +84,6 @@ public class Vala.SourceReference {
         * @return human-readable string
         */
        public string to_string () {
-               return ("%s:%d.%d-%d.%d".printf (file.get_relative_filename (), begin.line, begin.column, end.line, end.column));
+               return ("%s:%d:%d-%d:%d".printf (file.get_relative_filename (), begin.line, begin.column, end.line, end.column));
        }
 }