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

Bug#481291: kate: Spellcheck replacing words at the static word wrap limit with longer corrections causes havoc



Package: kate
Version: 4:3.5.9.dfsg.1-2+b1
Severity: normal


To reproduce:
Start kate.
Turn on static word wrapping at 80 columns.
Duplicate the following line several times (5 or so is sufficient):
test test test test test test test test test test test test test test test a tes
 That line should just touch the static word wrap limit.
Perform a spellcheck and replace each instance of "tes" with a longer suggestion
(the default suggestion I'm presented with is "Tess").

As the spellcheck replaces the first word you should see the static word wrap
doing it's job and moving the word to the next line. However, when it comes to
the next instance of "tes", the context highlighting of the word is missing, and
upon replacement a whole bunch of whitespace plus a new "Tess" is inserted
between the first "a" and the other "Tess", and the remaining lines stay
unchanged and uncorrected. This occurs similarly for subsequent spellcheck
replacements.

I've tried to describe it, but it's probably easier to just see for yourself.

It's as if there are two buffers of text, one for kate and one for the
spellchecker backend, that lose sync when the static word wrap does it's work.
Interestingly, it seems to not be a problem if the unrecognised word ("tes") is
somewhere in the middle of the line. It's only a problem if the word is at the
end of the line.

I originally discovered this in kile, and since confirmed it also appears in
kate, so it's probably an issue with the editor part. I haven't a clue if the
KDE 4 apps handle any better.

Peace,
Brendon


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages kate depends on:
ii  kdelibs4c2a             4:3.5.9.dfsg.1-4 core libraries and binaries for al
ii  libc6                   2.7-10           GNU C Library: Shared libraries
ii  libgcc1                 1:4.3.0-3        GCC support library
ii  libqt3-mt               3:3.3.8b-5       Qt GUI Library (Threaded runtime v
ii  libstdc++6              4.3.0-3          The GNU Standard C++ Library v3

Versions of packages kate recommends:
ii  kregexpeditor                 4:3.5.9-1  graphical regular expression edito

-- no debconf information



Reply to: