summaryrefslogtreecommitdiff
path: root/platform/android/java_glue.h
diff options
context:
space:
mode:
authorZaven Muradyan <voithos@google.com>2017-12-12 21:40:12 -0800
committerZaven Muradyan <voithos@google.com>2017-12-12 21:40:12 -0800
commitf139d0e4e65effc658a06c7957d34e93d4eb8b69 (patch)
tree46492b902d5d93b82d2151bd234b6387f8d7738c /platform/android/java_glue.h
parentfb12d700c9f4f47c775fa1bebeeb40ff683b2ef2 (diff)
Account for folded code blocks when navigating via members list
Previously, the editor would attempt to set the scroll position to the function's line number, but this would result in an invalid scroll whenever functions above the target were folded. This changes callback to use a combination of `goto_line` and `set_edit_state` to navigate to the target line and reset the cursor to column 0. Using `goto_line` also has the side effect of automatically unfolding the target function, which seems like useful behavior. Fixes #14572.
Diffstat (limited to 'platform/android/java_glue.h')
0 files changed, 0 insertions, 0 deletions