projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93499c7
)
src/Palete/CompletionProvider.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 18 Jan 2024 15:10:12 +0000
(23:10 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 18 Jan 2024 15:10:12 +0000
(23:10 +0800)
src/Palete/CompletionProvider.vala
patch
|
blob
|
history
diff --git
a/src/Palete/CompletionProvider.vala
b/src/Palete/CompletionProvider.vala
index
f128b85
..
690cc73
100644
(file)
--- a/
src/Palete/CompletionProvider.vala
+++ b/
src/Palete/CompletionProvider.vala
@@
-186,7
+186,8
@@
namespace Palete {
var offset = end.get_line_offset();
if (this.editor.prop != null) {
line += this.editor.prop.start_line - 1; // i think..
- offset += this.editor.file.file_namespace == "" ? 1 : 2; //
+ // this is based on Gtk using tabs (hence 1/2 chars);
+ offset += this.editor.file.file_namespace == "" ? 1 : 2;
}
this.file.getLanguageServer().document_change_real(this.file, this.editor.tempFileContents());