From: Alan Knowles Date: Tue, 19 Mar 2024 15:22:17 +0000 (+0800) Subject: src/Lsp.vala X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=bfff63256b4f57cf7aaf99758e99ee8ab00fdb94;p=roobuilder src/Lsp.vala --- diff --git a/src/Lsp.vala b/src/Lsp.vala index 0b93da946..eb1c99804 100644 --- a/src/Lsp.vala +++ b/src/Lsp.vala @@ -66,7 +66,7 @@ namespace Lsp { public Position.new_line(uint line) { this.line = line; - this.character = 0; + this.character = 1; } /** * Line position in a document (zero-based). @@ -84,6 +84,7 @@ namespace Lsp { public uint character { get; set; default = -1; } public int compare_to (Position other) { + return line > other.line ? 1 : (line == other.line ? (character > other.character ? 1 :