Skip to content

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

Closed
@leslykinzel

Description

@leslykinzel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bite-sizesmall issuesdesign papercutSmall visual defectpythonPython programming language supportyamlYAML data format support

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions