mhayashi1120 / Emacs-langtool

LanguageTool for Emacs
GNU General Public License v3.0
377 stars 31 forks source link

wrong placement #5

Closed Jiehong closed 12 years ago

Jiehong commented 12 years ago

When checking a sentence, the placement of the error and of the correction is wrong.

For example: First sentence. For instance, most of people are chinese. However, most of people are not old.

In the first one, the " most of peopl" will be highlighted and the correction will lead to " For instance,most of the peoplee"… which is just bad. But the second one will be correct. This only appear if one or more sentence are contained in the line.

Eventually, the last example: First sencence. Second sentence but a bit longer. For instance, most of people are using Emacs.

In this case, the last sentence is matched as "t most of peop".

To sum up: The position of the mistake is good in the first sentence of the line. The position of the mistakes in sentences after the first one will shift on the right by 1 caracter on the left for each sentence.

mhayashi1120 commented 12 years ago

This is LanguageTool's bug which was reported here.

http://sourceforge.net/tracker/?func=detail&aid=3054895&group_id=110216&atid=655717

But I read the LanguageTool.vim comment about this bug, decide to handle the problem.

If there are still any incorrect markers, please try e' andc' command, while executing M-x langtool-correct-buffer