projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dc49b2
)
src/Lsp.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 19 Mar 2024 14:52:21 +0000
(22:52 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 19 Mar 2024 14:52:21 +0000
(22:52 +0800)
src/Lsp.vala
patch
|
blob
|
history
diff --git
a/src/Lsp.vala
b/src/Lsp.vala
index
158e772
..
710d7c0
100644
(file)
--- a/
src/Lsp.vala
+++ b/
src/Lsp.vala
@@
-178,8
+178,10
@@
namespace Lsp {
}
public bool contains (Position pos) {
- GLib.debug( "range contains %d (%d-%d)", (int)pos.line, (int)start.line, (int)end.line);
+
var ret = start.compare_to (pos) <= 0 && pos.compare_to (end) <= 0;
+ GLib.debug( "range contains %d (%d-%d) %s", (int)pos.line, (int)start.line, (int)end.line, ret ? "Y" : "N");
+ return ret;
}
}