You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tabline visually extends beyond its scope unless there is text after it. (This may affect any code that uses indentation to define scope)
Steps to trigger the problem:
Create a new python file.
Create an indented structure, such as a function or a loop.
For example:
defmain():
print('I love Zed')
Add some newlines after it.
Add some more text below the indented code, and see the tabline go back to its correct length.
For example:
defmain():
print('I love Zed')
if__name__=='__main__':
main()
Now the tabline extends out of scope of the if statement as long as there is a newline after it.
Actual Behavior:
You should see the tabline extending one extra line below the scope, as long as there is no text after it.
Adding any text on a subsequent line will fix this. This issue only occurs when an indented structure is the last piece of code in a file.
Expected Behavior:
The tabline should not extend beyond the scope unless there is another line ahead that is in the same scope.
These screenshots are from the same file in vscode:
This issue can be temporarily avoided by adding "ensure_final_newline_on_save": false to settings.json and ensuring that the file does not end with an empty line.
Summary
Tabline visually extends beyond its scope unless there is text after it. (This may affect any code that uses indentation to define scope)
Steps to trigger the problem:
For example:
For example:
Now the tabline extends out of scope of the if statement as long as there is a newline after it.
Actual Behavior:
You should see the tabline extending one extra line below the scope, as long as there is no text after it.
Adding any text on a subsequent line will fix this. This issue only occurs when an indented structure is the last piece of code in a file.
Expected Behavior:
The tabline should not extend beyond the scope unless there is another line ahead that is in the same scope.
These screenshots are from the same file in vscode:
This issue can be temporarily avoided by adding
"ensure_final_newline_on_save": false
to settings.json and ensuring that the file does not end with an empty line.Zed Version and System Specs
Zed: v0.176.3 (Zed)
OS: Linux X11 linuxmint 22.1
Memory: 62 GiB
Architecture: x86_64
GPU: AMD Radeon RX 7900 XTX (RADV NAVI31) || radv || Mesa 24.0.9-0ubuntu0.3
The text was updated successfully, but these errors were encountered: