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

List:       jedit-devel
Subject:    [ jEdit-devel ] [jedit:plugin-bugs] #1865 TextTools: Toggle Line Comment works wrongly
From:       "Alan Ezust" <ezust () users ! sf ! net>
Date:       2017-03-20 14:35:41
Message-ID: /p/jedit/plugin-bugs/1865/db00ec4e3996ffac2305c4041da3f11d1c04ce5c.plugin-bugs () jedit ! p ! sourceforge ! net
[Download RAW message or body]

[Attachment #2 (multipart/related)]


--===============6155226447953445758==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

- **summary**: Toggle Line Comment works wrongly --> TextTools: Toggle Line Comment \
                works wrongly
- **Group**:  --> 



---

** [plugin-bugs:#1865] TextTools: Toggle Line Comment works wrongly**

**Status:** open
**Group:** 
**Created:** Thu Aug 18, 2016 02:03 PM UTC by Victor Porton
**Last Updated:** Thu Aug 18, 2016 02:03 PM UTC
**Owner:** nobody


jEdit 5.3.0, TextTools 1.16.

In TextTools jEdit plugin there is the following bug:

After "Edit / Source / Line Comment", I have the following code block:

~~~
  # my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, \
$Params->{ItemsPerPage}] )->iterator;  # my @Cities   = ();
  # while (my $Item = $Iterator->fetch) {
    # my $City = {};
    # for (keys %$Item) {
      # $City->{$_} = $Item->{$_};
    # }
    # push @Cities, $City;
  # }
  # return \@Cities;
~~~

Then I run "Plugins / TexTools / Toggle Line Comment". And then it (wrongly) becomes \
(instead of uncommenting):

~~~
  ## my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, \
$Params->{ItemsPerPage}] )->iterator;  ## my @Cities   = ();
  ## while (my $Item = $Iterator->fetch) {
  #  # my $City = {};
  #  # for (keys %$Item) {
  #    # $City->{$_} = $Item->{$_};
  #  # }
  #  # push @Cities, $City;
  ## }
  ## return \@Cities;
~~~



---

Sent from sourceforge.net because jedit-devel@lists.sourceforge.net is subscribed to \
https://sourceforge.net/p/jedit/plugin-bugs/

To unsubscribe from further messages, a project admin can change settings at \
https://sourceforge.net/p/jedit/admin/plugin-bugs/options.  Or, if this is a mailing \
                list, you can unsubscribe from the mailing list.
--===============6155226447953445758==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><ul>
<li><strong>summary</strong>: Toggle Line Comment works wrongly --&gt; TextTools: \
Toggle Line Comment works wrongly</li> <li><strong>Group</strong>:  --&gt; </li>
</ul>
<hr/>
<p><strong> <a class="alink" \
href="https://sourceforge.net/p/jedit/plugin-bugs/1865/">[plugin-bugs:#1865]</a> \
TextTools: Toggle Line Comment works wrongly</strong></p> <p><strong>Status:</strong> \
open<br/> <strong>Group:</strong> <br/>
<strong>Created:</strong> Thu Aug 18, 2016 02:03 PM UTC by Victor Porton<br/>
<strong>Last Updated:</strong> Thu Aug 18, 2016 02:03 PM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>jEdit 5.3.0, TextTools 1.16.</p>
<p>In TextTools jEdit plugin there is the following bug:</p>
<p>After "Edit / Source / Line Comment", I have the following code block:</p>
<div class="codehilite"><pre>  <span class="c1"># my $Iterator = \
$Query-&gt;limited_dataset( [$Params-&gt;{DBStart}, $Params-&gt;{ItemsPerPage}] \
)-&gt;iterator;</span>  <span class="c1"># my @Cities   = ();</span>
  <span class="c1"># while (my $Item = $Iterator-&gt;fetch) {</span>
    <span class="c1"># my $City = {};</span>
    <span class="c1"># for (keys %$Item) {</span>
      <span class="c1"># $City-&gt;{$_} = $Item-&gt;{$_};</span>
    <span class="c1"># }</span>
    <span class="c1"># push @Cities, $City;</span>
  <span class="c1"># }</span>
  <span class="c1"># return \@Cities;</span>
</pre></div>


<p>Then I run "Plugins / TexTools / Toggle Line Comment". And then it (wrongly) \
becomes (instead of uncommenting):</p> <div class="codehilite"><pre>  <span \
class="c1">## my $Iterator = $Query-&gt;limited_dataset( [$Params-&gt;{DBStart}, \
$Params-&gt;{ItemsPerPage}] )-&gt;iterator;</span>  <span class="c1">## my @Cities   \
= ();</span>  <span class="c1">## while (my $Item = $Iterator-&gt;fetch) {</span>
  <span class="c1">#  # my $City = {};</span>
  <span class="c1">#  # for (keys %$Item) {</span>
  <span class="c1">#    # $City-&gt;{$_} = $Item-&gt;{$_};</span>
  <span class="c1">#  # }</span>
  <span class="c1">#  # push @Cities, $City;</span>
  <span class="c1">## }</span>
  <span class="c1">## return \@Cities;</span>
</pre></div>


<hr/>
<p>Sent from sourceforge.net because jedit-devel@lists.sourceforge.net is subscribed \
to <a href="https://sourceforge.net/p/jedit/plugin-bugs/">https://sourceforge.net/p/jedit/plugin-bugs/</a></p>
 <p>To unsubscribe from further messages, a project admin can change settings at <a \
href="https://sourceforge.net/p/jedit/admin/plugin-bugs/options.">https://sourceforge.net/p/jedit/admin/plugin-bugs/options.</a> \
                Or, if this is a mailing list, you can unsubscribe from the mailing \
                list.</p></div>
--===============6155226447953445758==--



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel


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

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