octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45610] wrong commenting (ctrl+R) behavior in


From: H. G.
Subject: [Octave-bug-tracker] [bug #45610] wrong commenting (ctrl+R) behavior in GUI editor under Windows
Date: Thu, 23 Jul 2015 18:54:17 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0

URL:
  <http://savannah.gnu.org/bugs/?45610>

                 Summary: wrong commenting (ctrl+R) behavior in GUI editor
under Windows
                 Project: GNU Octave
            Submitted by: hardy
            Submitted on: Do 23 Jul 2015 18:54:16 GMT
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Here is how to reproduce the behavior:
* Use Windows (I used Windows 7, it does not happen under Ubuntu Linux) with
Octave 4.0.0 (official release)
* Type some lines text into the window of the GUI editor, let's say 8 lines.
For example this text:

line1
line2
line3
line4
line5
line6
line7
line8

* mark some lines with the mouse, let's say line 3 to 5.
* Press "Ctrl+R" three times to add three comment marks in front of all these
marked lines.
* Look at the result, in my case I get the following:

line1
line2
%%%line3
%%%line4
%%%line5
%%line6
%line7
line8


As you can see, with each usage of the keyboard shortcut "Ctrl+R" the marked
text region becomes larger by one line. So with the second keyboard shortcut,
one more line is commented out. And with the third keyboard shortcut, even a
second additonal line is commented out.

This behavior was very surprising to me. And I normally use keyboard shortcuts
to work faster, and then mostly didn't realize that I commented out more lines
than I intended to. This can really screw up your code :(

Can someone reproduce this? Can we fix this?




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45610>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]