projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99c67a3
)
src/Builder4/WindowState.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 2 Jun 2015 11:08:31 +0000
(19:08 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 2 Jun 2015 11:08:31 +0000
(19:08 +0800)
src/Builder4/WindowState.vala
patch
|
blob
|
history
diff --git
a/src/Builder4/WindowState.vala
b/src/Builder4/WindowState.vala
index
23346a2
..
3b16f20
100644
(file)
--- a/
src/Builder4/WindowState.vala
+++ b/
src/Builder4/WindowState.vala
@@
-435,7
+435,7
@@
public class WindowState : Object
}
- public void fileViewOpen(JsRender.JsRender file, int line =
0
)
+ public void fileViewOpen(JsRender.JsRender file, int line =
-1
)
{
this.win.project = file.project;
this.project = file.project;
@@
-446,6
+446,9
@@
public class WindowState : Object
this.switchState (State.CODEONLY);
file.loadItems();
this.code_editor.show(file, null, "", "");
+ if (line> -1) {
+ this.code_editor.scroll_to_line(line);
+ }
} else {
this.switchState (State.PREVIEW);