[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Review Request 118955: vimode: don't insert garbage characters when pressing r<backspace>
From:       "Commit Hook" <null () kde ! org>
Date:       2014-06-28 15:48:39
Message-ID: 20140628154839.11642.84668 () probe ! kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118955/#review61143
-----------------------------------------------------------


This review has been submitted with commit e4bc98575a5810746df2e02a660ae8c923263cfe \
by Miquel Sabaté to branch KDE/4.13.

- Commit Hook


On June 28, 2014, 3:28 p.m., Miquel Sabaté Solà wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118955/
> -----------------------------------------------------------
> 
> (Updated June 28, 2014, 3:28 p.m.)
> 
> 
> Review request for Kate and Michal Humpula.
> 
> 
> Bugs: 336357
> https://bugs.kde.org/show_bug.cgi?id=336357
> 
> 
> Repository: ktexteditor
> 
> 
> Description
> -------
> 
> Right now the way we replace characters with the "r" command is too naive. If we \
> press keys like backspace, capslock, left, etc. after pressing "r", the replace \
> should be canceled. Moreover, if we press the enter key after pressing "r", then a \
> newline should be the character being added. All of these things are now possible \
> with this patch. 
> This is not the cleanest patch ever (adding the encoded2qt function is a bit too \
> hack-ish), but I've tried fixing this in other ways and all of them failed \
> miserably :) 
> 
> Diffs
> -----
> 
> autotests/src/vimode/modes.h 019097d 
> autotests/src/vimode/modes.cpp 8519511 
> src/vimode/katevikeyparser.h abfc3af 
> src/vimode/katevikeyparser.cpp d97481c 
> src/vimode/katevinormalmode.cpp 9643d60 
> 
> Diff: https://git.reviewboard.kde.org/r/118955/diff/
> 
> 
> Testing
> -------
> 
> I've added a couple of tests.
> 
> 
> Thanks,
> 
> Miquel Sabaté Solà 
> 
> 


[Attachment #5 (text/html)]

<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;">  <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/118955/">https://git.reviewboard.kde.org/r/118955/</a>
  </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This review has been \
submitted with commit e4bc98575a5810746df2e02a660ae8c923263cfe by Miquel Sabaté to \
branch KDE/4.13.</pre>  <br />









<p>- Commit Hook</p>


<br />
<p>On June 28th, 2014, 3:28 p.m. UTC, Miquel Sabaté Solà wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('https://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;">  <tr>
  <td>

<div>Review request for Kate and Michal Humpula.</div>
<div>By Miquel Sabaté Solà .</div>


<p style="color: grey;"><i>Updated June 28, 2014, 3:28 p.m.</i></p>







<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="https://bugs.kde.org/show_bug.cgi?id=336357">336357</a>


</div>



<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
ktexteditor
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Right now the way we replace characters with the &quot;r&quot; command \
is too naive. If we press keys like backspace, capslock, left, etc. after pressing \
&quot;r&quot;, the replace should be canceled. Moreover, if we press the enter key \
after pressing &quot;r&quot;, then a newline should be the character being added. All \
of these things are now possible with this patch.

This is not the cleanest patch ever (adding the encoded2qt function is a bit too \
hack-ish), but I&#39;ve tried fixing this in other ways and all of them failed \
miserably :)</pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">I&#39;ve added a couple of tests.</pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>autotests/src/vimode/modes.h <span style="color: grey">(019097d)</span></li>

 <li>autotests/src/vimode/modes.cpp <span style="color: grey">(8519511)</span></li>

 <li>src/vimode/katevikeyparser.h <span style="color: grey">(abfc3af)</span></li>

 <li>src/vimode/katevikeyparser.cpp <span style="color: grey">(d97481c)</span></li>

 <li>src/vimode/katevinormalmode.cpp <span style="color: grey">(9643d60)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/118955/diff/" style="margin-left: \
3em;">View Diff</a></p>







  </td>
 </tr>
</table>








  </div>
 </body>
</html>



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic