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

Bug#570409: kate: Sometime bad placement of cursor if writing at end of line with static word wrap



Package: kate
Version: 4:4.3.4-1
Severity: normal

With static word wrap activated, if you try to write at the beginning of a word
which is at end of line, when the word is finally moved to the next line, the
cursor is moved at the end of the word. This is wrong because there is no
reason that the edition that was performed at the beginning of the word is
finished. Bug could be related to bug #481291

Here is how you can reproduce the bug:

- activate static word wrap at 80 columns
- Write the following line : "thing thing thing thing thing thing thing thing thing thing thing thing thing thing"
  (the last "thing" should be moved on the next line because of insufficient
  space)
- Move the cursor at the beginning of the last "thing" of the first line, after
  the last space
- Try to add a "thing " by just writing it
- You should now have : "thinthingg  thing" on the second line, with the cursor
  between the two space after "thinthingg"

What is expected is at least:
thing thing thing thing thing thing thing thing thing thing thing thing
thing thing thing

with the cursor after the first space on the second line.

Or better:

thing thing thing thing thing thing thing thing thing thing thing thing thing
thing thing

with cursor at the beginning of the second line. But this require to test,
after hitting the space, that the new word can fit on the previous line
(since when the word was written it was considering as the beginning of
the next word since there wasn't any space yet and was too long to fit
on the first line whatever the size of the new word is small enough).

Hope I'm clear enough

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kate depends on:
ii  kdebase-runtime               4:4.3.4-2  runtime components from the offici
ii  kdelibs5                      4:4.3.4-1  core libraries for all KDE 4 appli
ii  libc6                         2.10.2-5   Embedded GNU C Library: Shared lib
ii  libplasma3                    4:4.3.4-1  library for the KDE 4 Plasma deskt
ii  libqt4-dbus                   4:4.5.3-4  Qt 4 D-Bus module
ii  libqt4-qt3support             4:4.5.3-4  Qt 3 compatibility library for Qt 
ii  libqt4-xml                    4:4.5.3-4  Qt 4 XML module
ii  libqtcore4                    4:4.5.3-4  Qt 4 core module
ii  libqtgui4                     4:4.5.3-4  Qt 4 GUI module
ii  libstdc++6                    4.4.3-2    The GNU Standard C++ Library v3

kate recommends no packages.

Versions of packages kate suggests:
ii  aspell                        0.60.6-3   GNU Aspell spell-checker
ii  ispell                        3.1.20.0-7 International Ispell (an interacti
pn  khelpcenter4                  <none>     (no description available)
ii  konsole                       4:4.3.4-1  X terminal emulator for KDE 4

-- no debconf information



Reply to: