projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b4e20
)
src/Lsp.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 19 Mar 2024 15:22:17 +0000
(23:22 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 19 Mar 2024 15:22:17 +0000
(23:22 +0800)
src/Lsp.vala
patch
|
blob
|
history
diff --git
a/src/Lsp.vala
b/src/Lsp.vala
index
0b93da9
..
eb1c998
100644
(file)
--- 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 :