Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
126
Issues
126
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
0891d5c1
Commit
0891d5c1
authored
Oct 10, 2019
by
DAILLER Sylvain
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ide_source' into 'master'
Ide source See merge request
!245
parents
025c5e94
29f376a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/ide/why3ide.ml
src/ide/why3ide.ml
+7
-3
No files found.
src/ide/why3ide.ml
View file @
0891d5c1
...
...
@@ -1027,10 +1027,15 @@ let current_cursor_loc = ref None
let
move_to_line
?
(
character
=
0
)
~
yalign
(
v
:
GSourceView
.
source_view
)
line
=
let
line
=
max
0
(
line
-
1
)
in
let
line
=
min
line
v
#
buffer
#
line_count
in
let
it
=
v
#
buffer
#
get_iter
(
`LINECHAR
(
line
,
character
))
in
(* Warning : Do not use LINECHAR here as it fails when there is not enough
char on the line. *)
let
it
=
v
#
buffer
#
get_iter
(
`LINE
line
)
in
let
it
=
it
#
forward_chars
character
in
v
#
buffer
#
place_cursor
~
where
:
it
;
let
mark
=
`MARK
(
v
#
buffer
#
create_mark
it
)
in
v
#
scroll_to_mark
~
use_align
:
true
~
yalign
~
xalign
:
0
.
5
mark
(* Make the left side of the code always visible *)
let
xalign
=
1
.
0
in
v
#
scroll_to_mark
~
use_align
:
true
~
yalign
~
xalign
mark
(* Scroll to a specific locations *)
let
scroll_to_loc
~
force_tab_switch
loc_of_goal
=
...
...
@@ -2138,7 +2143,6 @@ let (_: GMenu.menu_item) =
~
tooltip
:
"After find cursor ident, return back to cursor"
~
callback
:
get_back_loc
(* "Tools" menu items *)
let
tools_menu
=
factory
#
add_submenu
"_Tools"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment