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
f41439c8
Unverified
Commit
f41439c8
authored
Feb 20, 2019
by
Rémi Verschelde
Committed by
GitHub
Feb 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #26073 from karliss/line-edit-home
Allow moving LineEdit visible window left by more than one symbol.
parents
3c70a4a8
86374c04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
line_edit.cpp
scene/gui/line_edit.cpp
+1
-3
No files found.
scene/gui/line_edit.cpp
View file @
f41439c8
...
...
@@ -1154,9 +1154,7 @@ void LineEdit::set_cursor_position(int p_pos) {
if
(
cursor_pos
<=
window_pos
)
{
/* Adjust window if cursor goes too much to the left */
if
(
window_pos
>
0
)
set_window_pos
(
window_pos
-
1
);
set_window_pos
(
MAX
(
0
,
cursor_pos
-
1
));
}
else
if
(
cursor_pos
>
window_pos
)
{
/* Adjust window if cursor goes too much to the right */
int
window_width
=
get_size
().
width
-
style
->
get_minimum_size
().
width
;
...
...
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