Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

HTML Bug #3879

Open Maximum33 opened 3 years ago

Maximum33 commented 3 years ago

Short Summary

Example code

<sup class="SPR">12:34</sup>

If I highlight the "4" and type another number to replace it (it doesn't matter what number), the "1" will change to the same number. It doesn't happen every single time, but often.

Steps to Reproduce

Here is the CSS code

.SPR {
    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    font-weight: 500;
}
.BibleTextSB {
    margin-top: 4px;
    font-family: 'Open Sans', 'Tinos', sans-serif, serif;
    font-size: 14px;
    font-weight: 600;
    text-align: justify;
    margin-bottom: 0px;
    line-height: 1.3;
    color: #CC3333;
}

Here is the Head code:

<!doctype html>
<html>

<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>The English Kingdom Bible Version</title>
<link href="../css/multiColumnTemplate.css" rel="stylesheet" type="text/css">
<link href="../css/StudyPages.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i|Oswald:400,500,600|Roboto:400,400i,500,500i,700,700i&amp;subset=greek,greek-ext" rel="stylesheet">
<!--[if lt IE 9]><script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script><script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div>
</div>
</body>
</html>

Here is some typical code

<span class="BibleTextSB">... feet.</span> <sup class="SPR">28:43</sup><span class="BibleTextSB">And the...</span>

Expected results

bug2 bug1

Bug1 snip shows the first and last number highlighted. And both of them are "3". The bug showed up when I changed the last number to "1". I then changed it to "3", and the first number changed to "3". I took the snip then. Bug2 snip shows the first and last number after I changed the second number to "5".

So to recreate, create a new html 5 file with the header and the superscript code as described within a container; and the CSS code. Open it within Komodo 12. <sup class="SPR">22:34</sup> highlight "4", and change it to "1". Then highlight the "4" again and change it to 3 or another number. The "4" should change to that number. My html page has sections, div(s) and more. I can give you more if it is needed. I'm trying to keep it simple.

Actual results

Platform Information

Komodo Edit 12* Windows 10 latest version

Additional Information

I've never had this problem with any other html editor, ever. Only Komodo. I've turned off almost every option so the code isn't trying to be "smart" As long as I don't highlight the digit in location "4" (e.g. I backspace and type in another number), there is no problem. Highlighting any other number in any other location in the superscript does not create any similar issue. The bug only shows up when I do as I described, and not every single time; but often.

th3coop commented 3 years ago

WOW, what a bizarre bug! Nice find @Maximum33. Thankfully it's easy to disable this in prefs, Edit menu > Preferences > Editor > Smart Editing: Edit matching delimiter on select. Disable that preference.

Maximum33 commented 3 years ago

Thank you!

On Mon, Jul 6, 2020, 10:23 AM Carey Hoffman notifications@github.com wrote:

WOW, what a bizarre bug! Nice find @Maximum33 https://github.com/Maximum33. Thankfully it's easy to disable this in prefs, Edit menu > Preferences > Editor > Smart Editing: Edit matching delimiter on select. Disable that preference.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Komodo/KomodoEdit/issues/3879#issuecomment-654366662, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQF6L5KHFSR5WXARZOCBWHTR2ICAZANCNFSM4ORHQBEQ .