Skip to content

Indentation guides extend 1 line too long at end of file #26274

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

Open
leslykinzel opened this issue Mar 7, 2025 · 1 comment · May be fixed by #29482
Open

Indentation guides extend 1 line too long at end of file #26274

leslykinzel opened this issue Mar 7, 2025 · 1 comment · May be fixed by #29482
Labels
bite-size small issues design papercut Small visual defect python Python programming language support yaml YAML data format support

Comments

@leslykinzel
Copy link

leslykinzel commented Mar 7, 2025

Summary

Indentation Guides (aka Tablines) for the final scope in a file extend one line too long.

This impacts any language where whitespace is significant (Python, YAML, Nim, etc)

Steps to trigger the problem:

  1. Create a new python file with:
def main():
    def foo():
        while True:
            print()


def main():
    def foo():
        while True:
            print()


Python YAML
Image Image

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

@notpeter notpeter changed the title Tabline extends past scope Indentation guides extend 1 line too long at end of file Apr 8, 2025
@notpeter
Copy link
Member

notpeter commented Apr 8, 2025

I can reproduce.

@notpeter notpeter added python Python programming language support yaml YAML data format support design papercut Small visual defect bite-size small issues labels Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bite-size small issues design papercut Small visual defect python Python programming language support yaml YAML data format support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants