question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi-byte input in multi-line input form does not behave properly.

See original GitHub issue

In the API edit screen, copying and pasting the following characters into a form and then entering and deleting single byte characters after the following characters causes strange behavior. A strange phenomenon occurs in the markdown input and source editing screens. Is it possible to fix this?

It is hard to explain in words, but it seems that the middle of multi-byte characters are deleted, and single-byte characters that should have been deleted are still displayed.

ああ⇒ああ⇒ああaa

I think I am having a problem with the multi-line input form. The following is the form just after copying and pasting. Normally, after pasting, the input position on the keyboard is supposed to be right after the pasted character, but since the input position is at the end of the multibyte character, it is behaving strangely at this point. image image

I don’t seem to have the same problem with the single line input form. image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Yuutakasancommented, Jun 29, 2021

@EricWittmann After checking, I realized that this patch was wrong, and I’m working on fixing it. I’m working on a fix for the patch and will send you a PR.

We have been informed that there is a problem in Thai, so it seems that we need to include this support for each language when considering other language versions. For Japanese, the problem will be solved by a patch that we are preparing. https://github.com/ajaxorg/ace/issues/4512

1reaction
EricWittmanncommented, Jun 29, 2021

I don’t recall whether ace-build didn’t work or I just didn’t know about it. brace is the browserify compatible version. Not sure whether ace-builds is also compatible with browserify. We’re very outdated on a lot of our UI stuff. We really need to upgrade to React, Patternfly 4, etc. But that’s a ton of work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple lines of input in <input type="text" /> - Stack Overflow
I am trying to get it to take multiple lines of input. The width and height make the box to be bigger, but...
Read more >
Strings - Manual - PHP
A string is series of characters, where a character is the same as a byte. This means that PHP only supports a 256-character...
Read more >
Comments - cppreference.com
C++-style comments are usually used to comment single lines of text or code; however, they can be placed together to form multi-line ......
Read more >
scanf() — Read Data - IBM
It contains no characters if the input string is empty or consists entirely of white space, or if the first non-whitespace character is...
Read more >
Multi-Line JavaScript Strings - David Walsh Blog
It should be noted the backslash multiline string notation is not part of any ECMAScript standards and can break various minifiers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found