src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 18 Jan 2024 15:11:19 +0000 (23:11 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 18 Jan 2024 15:11:19 +0000 (23:11 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index c5df2cc..62e7331 100644 (file)
     "\t",
     "\tif (_this.prop != null) {",
     "\t",
-    "\t\ttlines = _this.prop.end_line + 1;",
-    "\t\toffset = _this.prop.start_line + 1;",
+    "\t\ttlines = _this.prop.end_line;",
+    "\t\toffset = _this.prop.start_line;",
     "\t",
     "\t}",
     "\t ",
index 787d339..ac613c9 100644 (file)
@@ -286,8 +286,8 @@ public class Editor : Object
                
                if (_this.prop != null) {
                
-                       tlines = _this.prop.end_line + 1;
-                       offset = _this.prop.start_line + 1;
+                       tlines = _this.prop.end_line;
+                       offset = _this.prop.start_line;
                
                }