Skip to content
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

[Bug] Prompt Section with wrong highlights #449

Closed
ExperienceRO opened this issue Oct 26, 2023 · 5 comments · Fixed by #463
Closed

[Bug] Prompt Section with wrong highlights #449

ExperienceRO opened this issue Oct 26, 2023 · 5 comments · Fixed by #463
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@ExperienceRO
Copy link

ExperienceRO commented Oct 26, 2023

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Microsoft Edge
Ver. 118.0.2088.69 (Compilação oficial) (64 bits)

📦 SD Wbui 版本或提交 | Version or Commit

v1.6.0 - AUTOMATIC1111/stable-diffusion-webui@5ef669d

📦 Lobe Theme 版本或提交 | Version or Commit

51acc6e

🐛 问题描述 | Bug Description

Captura de tela 2023-10-26 093636

Whenever you need to select a part of the prompt, the part you're selecting is never the actual part being selected, because the highlighting is all wrong.

Captura de tela 2023-10-26 094201

Captura de tela 2023-10-26 094147

🚦 期望结果 | Expected Behavior

When you select a part of the promtp, this is the part that should be selected.

📷 复现步骤 | Recurrence Steps

Typing prompts and then selecting a part of the prompt to correct or delete or whatever.

📝 补充信息 | Additional Information

No response

@ExperienceRO ExperienceRO added the 🐛 Bug Something isn't working | 缺陷 label Oct 26, 2023
@sumeee
Copy link

sumeee commented Nov 9, 2023

The bug description is very vague, but if this is the same issue I'm having, I can add some additional information:

For the following scenarios make sure Prompt Syntax Highlighting is turned on.

Scenario 1:

Add the following text (without quotes) into positive prompt and double click on middle of text2:
"text1, text2, text3"
Expected behavior: "text2" is highlighted.
Actual behavior: "text2" is highlighted, so it works as intended.
image

Scenario 2:

Make sure there is no text in the positive prompt, than add the following text and try to select text2:
" text1, text2, text3"
Notice that the text starts with two spaces.
Expected behavior: "text2" is highlighted.
Actual behavior: ", tex" is highlighted. Also the two spaces at the beginning of the text are not shown.
image
NOTE: in the above image the text is selected by click and drag; if the text is selected by double-click than it looks like this:
image

@ExperienceRO
Copy link
Author

Exactly!! In the example below, I've skipped a line, so the text is actually at the bottom and there's nothing on the top line where the highlight is.
image

image

image

The bug description is very vague, but if this is the same issue I'm having, I can add some additional information:

For the following scenarios make sure Prompt Syntax Highlighting is turned on.

Scenario 1:

Add the following text (without quotes) into positive prompt and double click on middle of text2: "text1, text2, text3" Expected behavior: "text2" is highlighted. Actual behavior: "text2" is highlighted, so it works as intended. image

Scenario 2:

Make sure there is no text in the positive prompt, than add the following text and try to select text2: " text1, text2, text3" Notice that the text starts with two spaces. Expected behavior: "text2" is highlighted. Actual behavior: ", tex" is highlighted. Also the two spaces at the beginning of the text are not shown. image NOTE: in the above image the text is selected by click and drag; if the text is selected by double-click than it looks like this: image

@Mozoloa
Copy link

Mozoloa commented Nov 20, 2023

I can add to this, it looks like it's not taking the formatting into account, here it highlights a non bold version of what's actually in the loras, this glitch has been plaguing my experience for months

brave_s09GkuTDnm.mp4

@ExperienceRO
Copy link
Author

Worst is, that should be something easy to fix, it's some CSS issue I guess...

@lobehubbot
Copy link
Member

@ExperienceRO

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants