<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
My specs:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<ul>
<li class="elementToProof">Windows 10 x64</li><li class="elementToProof">Python 3.9.13 x64</li><li class="elementToProof">PyQt6 6.4.2</li><li class="elementToProof ContentPasted0">PyQt6-QScintilla 2.13.4</li></ul>
<div class="elementToProof ContentPasted1">When using the '<b><i>setEolMode</i></b>' function with an integer value, in my case 2 (<b><span class="ContentPasted2"><i>SC_EOL_LF</i></span></b>), the function accepts it but behaves weird, the cursor disappears
when pressing <b><i>ENTER </i></b>at the end of a line, but only once the new line is added! If you add any other characters or space and then delete back to the start of the line the cursor reappears.</div>
<div class="elementToProof ContentPasted1 ContentPasted3">Example of this call:</div>
<div class="elementToProof ContentPasted1 ContentPasted3"><span> </span><i>self.setEolMode(2)</i><br>
</div>
<div class="elementToProof ContentPasted1 ContentPasted3"><br>
</div>
<div class="elementToProof ContentPasted1 ContentPasted3">But, if the integer is wrapped in the EolMode enum, then it works:</div>
<div class="elementToProof ContentPasted1 ContentPasted3"><span class="ContentPasted4 ContentPasted5"> <span></span><i>self.setEolMode(QsciScintilla.EolMode(2))</i></span></div>
<div class="elementToProof ContentPasted1 ContentPasted3"><span class="ContentPasted4 ContentPasted5"><br>
</span></div>
<div class="elementToProof ContentPasted1 ContentPasted3"><span class="ContentPasted4 ContentPasted5">I doing something wrong or is this a bug?</span></div>
<div class="elementToProof ContentPasted1 ContentPasted3"><span class="ContentPasted4 ContentPasted5"><br>
</span></div>
<div class="elementToProof ContentPasted1 ContentPasted3"><span class="ContentPasted4 ContentPasted5">Thanks</span></div>
<div class="elementToProof ContentPasted1 ContentPasted3"><span class="ContentPasted4 ContentPasted5">Matic<br>
</span></div>
<div class="elementToProof ContentPasted1"><br>
</div>
</div>
</body>
</html>