summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Wildberg <lorenz@wild-fisch.de>2022-09-27 20:05:59 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2023-02-26 16:19:59 +0100
commita692cea5430b4dae1c80d19eef6ba55025c8946e (patch)
tree15e5784a2f6adc9f136cc09d7efff0cb62e772be
parent35c4f62f8b55a1cfb1d1676b828b55563c6709cd (diff)
downloadvala-a692cea5430b4dae1c80d19eef6ba55025c8946e.tar.gz
vala: Replace '.' with ':' in SourceReference.to_string()
This makes it possible to click on the file path and let the location being opened in the editor.
-rw-r--r--vala/valasourcereference.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valasourcereference.vala b/vala/valasourcereference.vala
index d0680f705..4fcd00e56 100644
--- a/vala/valasourcereference.vala
+++ b/vala/valasourcereference.vala
@@ -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));
}
}