Skip to content

1.13.1版本有些情况下最后一行明明没有差异,却被显示有差异 #164

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
tanlingyun2005 opened this issue Mar 18, 2025 · 6 comments

Comments

@tanlingyun2005
Copy link

具体是哪些情况触发,我还没有找到规律。

Image
@Shimada666
Copy link
Owner

有可能是哪边多了一个换行符,可以把完整的内容放到编辑器对比下

@tanlingyun2005
Copy link
Author

感谢指点,我查了下,确实左侧多了一个换行符。
那如果这样的话,为啥不在左侧698行做出diff标识呢?

@Shimada666
Copy link
Owner

我看着像右边多了个换行符..

@tanlingyun2005
Copy link
Author

我确认了,真的是左侧多了换行符☺

@Shimada666
Copy link
Owner

左边多个换行符展示也是正常的。左边固定是旧版本,右边固定是新版本。新的一行来展示 diff 倒是可以考虑

@tanlingyun2005
Copy link
Author

这个组件整体非常好用,那就辛苦大佬有空修下👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants