Вы находитесь на странице: 1из 5

Ghost Line Bug

In the documentation of gedit mentions many shortcuts, which only had to fulfill
its function without adding something more. In the case of the shortcut ALT +
Arrow_UP which should only interchange the line where the cursor is with the
line above, this does not happen since it adds a line of more at the end of the
text, for example if the original document had 3 lines ( As in the example of
replica) when using the shortcut would end with 4 lines.

The shortcuts that gedit provides are following:

https://help.gnome.org/users/gedit/stable/gedit-shortcut-keys.html.en

Problem
In many cases a plus line is not a major drawback, but if you were reading a set
of data where the importance of the number of lines to count is important, as in
files used to read a huge string of data for the Training of neurons, this
generates an overflow problem.

Replica bug

The bug link found is as follows:

https://bugzilla.gnome.org/show_bug.cgi?id=624963

We will see that the following is validated:

The original file has 3 lines as in the posed in the post


When running the shortcut ALT + arrow up let's see how a new phantom line is
created when running wc in the test text, which verifies the mentioned bug.

Possible solution found

In one of the modules for the addition of text to the document the positioning
of the courses and the use of the length of text can be noted that it is adding a
line of more.

EDIT: compiling the code by testing different values is not bug fix, rather add
many more, possibly the way is not this part of the code.
Language in which you are working:

For the extension in which the files are stored it can be said that in C.

Using jhbuild
To test the source code of downloaded gedit has been made use of jhbuild in
ubuntu, following the installation guide:

https://wiki.gnome.org/Projects/Jhbuild/OnUbuntu
Obtaining the code in which i working:

Simple install procedure for gedit if you checked out the source code from git:

Download the most recent version of gedit


% git clone git://git.gnome.org/gedit

change to the toplevel directory


% cd gedit

generate the `configure' script


% ./autogen.sh

Modify code :D and

run the `configure' script


% ./configure

finaly
build gedit
% make

Modules, source code


References of similar cases:

Looking for possible solutions found the deactivation of the command Control +
D

https://ubuntuforums.org/showthread.php?t=1384779

Where it shows that part of the code of use of this command

Edit:
The bug has not yet been fixed :(

Вам также может понравиться