Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting text on full selected view scroll everything past end with the option scroll_past_end #1974

Open
evandrocoan opened this issue Oct 4, 2017 · 0 comments

Comments

@evandrocoan
Copy link

evandrocoan commented Oct 4, 2017

Summary

If you have a view filled of text from the up to the bottom, and you select everything with Ctrl+A, and paste a text with the same size of bigger, you view is scrolled to the bottom completely.

Expected behavior

Keep my current scrolling or at least see the whole view text end after pasting the text as in:

image


Actual behavior

Pasting text on full selected view scroll everything past end when the option scroll_past_end is enabled. Example of bug:

image


Steps to reproduce

  1. Set the setting scroll_past_end to true

  2. Create a new view on Sublime Text and fill it this text:

    ignored_packages: ["Vintage"]
    pre session restore time: 0.494838
    startup time: 0.689838
    first paint time: 0.698838
    reloading plugin Default.auto_indent_tag
    reloading plugin Default.block
    reloading plugin Default.comment
    reloading plugin Default.convert_syntax
    reloading plugin Default.copy_path
    reloading plugin Default.delete_word
    reloading plugin Default.detect_indentation
    reloading plugin Default.duplicate_line
    reloading plugin Default.echo
    reloading plugin Default.exec
    reloading plugin Default.fold
    reloading plugin Default.font
    reloading plugin Default.goto_line
    reloading plugin Default.history_list
    reloading plugin Default.indentation
    reloading plugin Default.install_package_control
    reloading plugin Default.kill_ring
    reloading plugin Default.mark
    reloading plugin Default.new_templates
    reloading plugin Default.open_context_url
    reloading plugin Default.open_in_browser
    reloading plugin Default.pane
    reloading plugin Default.paragraph
    reloading plugin Default.paste_from_history
    reloading plugin Default.profile
    reloading plugin Default.quick_panel
    reloading plugin Default.run_syntax_tests
    reloading plugin Default.save_on_focus_lost
    reloading plugin Default.scroll
    reloading plugin Default.set_unsaved_view_name
    reloading plugin Default.settings
    reloading plugin Default.show_scope_name
    reloading plugin Default.side_bar
    reloading plugin Default.sort
    reloading plugin Default.swap_line
    reloading plugin Default.switch_file
    reloading plugin Default.symbol
    reloading plugin Default.transform
    reloading plugin Default.transpose
    reloading plugin Default.trim_trailing_white_space
    reloading plugin Default.ui
    reloading plugin CSS.css_completions
    reloading plugin Diff.diff
    reloading plugin HTML.encode_html_entities
    reloading plugin HTML.html_completions
    reloading plugin 0_package_control_loader.00-package_control
    reloading plugin 0_package_control_loader.01-pygments
    reloading plugin 0_package_control_loader.15-coverage
    reloading plugin 0_package_control_loader.50-markupsafe
    reloading plugin 0_package_control_loader.50-python-markdown
    reloading plugin 0_package_control_loader.50-PythonDebugTools
    reloading plugin 0_package_control_loader.50-pyyaml
    reloading plugin 0_package_control_loader.50-regex
    reloading plugin 0_package_control_loader.51-python-jinja2
    reloading plugin 0_package_control_loader.55-mdpopups
    reloading plugin Package Control.1_reloader
    reloading plugin Package Control.2_bootstrap
    reloading plugin Package Control.Package Control
    plugins loaded
    Package Control: No updated packages
    


    image


  3. Now select all the text on the view with Ctrl+A, copy Ctrl+C and paste it with Ctrl+V:

    image


  4. Now after pasting the copied text, you will get the view all scrolled down to the bottom:

    image


  5. But it should be with the same view port, or at least keep me with bottom text as in:

    image


Environment

  • Operating system and version:
    • Windows 10 build 15063 x64
    • Mac OS ...
    • Linux ...
  • Monitor:
    • Resolution 1920x1080
    • dpi_scale used in ST 1.0
  • Sublime Text:
    • Build 3144
    • 32 bit

Related:

  1. Option to change behavior of pasting into multiple selections #1435 Option to change behavior of pasting into multiple selections
  2. Not allow minimap view port to go out of the screen when using the setting scroll_past_end #1946 Not allow minimap view port to go out of the screen when using the setting scroll_past_end
  3. "scroll_past_end": true causes file to jump up one line on save #831 "scroll_past_end": true causes file to jump up one line on save
  4. Limit scrolling with "scroll_past_end" feature to half of window height or 40 lines from bottom #568 Limit scrolling with "scroll_past_end" feature to half of window height or 40 lines from bottom
  5. Restore scroll position for all open files when restoring the workspace #454 Restore scroll position for all open files when restoring the workspace
  6. Auto-scroll window viewport periodically stops working on return #246 Auto-scroll window viewport periodically stops working on return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants