zed icon indicating copy to clipboard operation
zed copied to clipboard

Python indentation issue

Open failable opened this issue 6 months ago • 1 comments

Summary

The issue did not exist until a recent update.

Steps to reproduce:

  1. Open Zed with empty config.
Image
  1. Input below code in a Python buffer
def f() -> list[str]:
    |
  1. Input a

Expected Behavior:

def f() -> list[str]:
    a

Actual Behavior:

Image Image

Zed Version and System Specs

Zed: v0.188.2 (Zed Preview) OS: macOS 15.4.1 Memory: 64 GiB Architecture: aarch64

failable avatar May 25 '25 02:05 failable

I can reproduce on the latest Preview. However, I am unable to reproduce on the current main, where the issue seems to be fixed.

MrSubidubi avatar May 25 '25 17:05 MrSubidubi

Yes, this is recently fixed by https://github.com/zed-industries/zed/pull/31260. I will cherry pick it to preview.

smitbarmase avatar May 27 '25 00:05 smitbarmase