Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
bc347948
Unverified
Commit
bc347948
authored
Jan 16, 2020
by
Rémi Verschelde
Committed by
GitHub
Jan 16, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #34091 from andrycodestuffs/master
Fixed unknown ASCII symbols rendered instead of tabs in bookmarks list
parents
bb024ba9
d0b3cb89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
script_text_editor.cpp
editor/plugins/script_text_editor.cpp
+10
-4
No files found.
editor/plugins/script_text_editor.cpp
View file @
bc347948
...
@@ -691,13 +691,16 @@ void ScriptTextEditor::_update_bookmark_list() {
...
@@ -691,13 +691,16 @@ void ScriptTextEditor::_update_bookmark_list() {
bookmarks_menu
->
add_separator
();
bookmarks_menu
->
add_separator
();
for
(
int
i
=
0
;
i
<
bookmark_list
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
bookmark_list
.
size
();
i
++
)
{
String
line
=
code_editor
->
get_text_edit
()
->
get_line
(
bookmark_list
[
i
]).
strip_edges
();
// Strip edges to remove spaces or tabs.
// Also replace any tabs by spaces, since we can't print tabs in the menu.
String
line
=
code_editor
->
get_text_edit
()
->
get_line
(
bookmark_list
[
i
]).
replace
(
"
\t
"
,
" "
).
strip_edges
();
// Limit the size of the line if too big.
// Limit the size of the line if too big.
if
(
line
.
length
()
>
50
)
{
if
(
line
.
length
()
>
50
)
{
line
=
line
.
substr
(
0
,
50
);
line
=
line
.
substr
(
0
,
50
);
}
}
bookmarks_menu
->
add_item
(
String
::
num
((
int
)
bookmark_list
[
i
]
+
1
)
+
" -
\"
"
+
line
+
"
\"
"
);
bookmarks_menu
->
add_item
(
String
::
num
((
int
)
bookmark_list
[
i
]
+
1
)
+
" -
`"
+
line
+
"`
"
);
bookmarks_menu
->
set_item_metadata
(
bookmarks_menu
->
get_item_count
()
-
1
,
bookmark_list
[
i
]);
bookmarks_menu
->
set_item_metadata
(
bookmarks_menu
->
get_item_count
()
-
1
,
bookmark_list
[
i
]);
}
}
}
}
...
@@ -841,13 +844,16 @@ void ScriptTextEditor::_update_breakpoint_list() {
...
@@ -841,13 +844,16 @@ void ScriptTextEditor::_update_breakpoint_list() {
breakpoints_menu
->
add_separator
();
breakpoints_menu
->
add_separator
();
for
(
int
i
=
0
;
i
<
breakpoint_list
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
breakpoint_list
.
size
();
i
++
)
{
String
line
=
code_editor
->
get_text_edit
()
->
get_line
(
breakpoint_list
[
i
]).
strip_edges
();
// Strip edges to remove spaces or tabs.
// Also replace any tabs by spaces, since we can't print tabs in the menu.
String
line
=
code_editor
->
get_text_edit
()
->
get_line
(
breakpoint_list
[
i
]).
replace
(
"
\t
"
,
" "
).
strip_edges
();
// Limit the size of the line if too big.
// Limit the size of the line if too big.
if
(
line
.
length
()
>
50
)
{
if
(
line
.
length
()
>
50
)
{
line
=
line
.
substr
(
0
,
50
);
line
=
line
.
substr
(
0
,
50
);
}
}
breakpoints_menu
->
add_item
(
String
::
num
((
int
)
breakpoint_list
[
i
]
+
1
)
+
" -
\"
"
+
line
+
"
\"
"
);
breakpoints_menu
->
add_item
(
String
::
num
((
int
)
breakpoint_list
[
i
]
+
1
)
+
" -
`"
+
line
+
"`
"
);
breakpoints_menu
->
set_item_metadata
(
breakpoints_menu
->
get_item_count
()
-
1
,
breakpoint_list
[
i
]);
breakpoints_menu
->
set_item_metadata
(
breakpoints_menu
->
get_item_count
()
-
1
,
breakpoint_list
[
i
]);
}
}
}
}
...
...
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