adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

[Inline editor] delete line moves the editor if function is defined above #7261

Open wnr opened 10 years ago

wnr commented 10 years ago

When opening up the inline editor for a function that is defined above the current selection in the same file, adding/deleting lines in the inline editor makes the editor move. This is of course because the number of lines has been changed which then naturally would increase or decrease the position of the inline editor. However, I find it a bit annoying to work with an inline editor that moves around when I'm editing in it.

My proposal is to compensate the line changes by scrolling the main editor so that the inline editor always stays at the same position. This can of course only be done when the editor is positioned in a way that it is scrollable.

peterflynn commented 10 years ago

Reviewed - low priority @ingorichter