Bug 41000 - Ошибка при обработке
Summary: Ошибка при обработке
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: yospellchecker (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Fr. Br. George
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-23 16:40 MSK by Николай Пряхин
Modified: 2021-09-23 16:40 MSK (History)
1 user (show)

See Also:


Attachments
Пример (111.81 KB, image/png)
2021-09-23 16:40 MSK, Николай Пряхин
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Николай Пряхин 2021-09-23 16:40:21 MSK
Created attachment 9735 [details]
Пример

Если регистр буквы подлежащей замене отличается от регистра букв этого слова, то плагин выводит ошибку. 

Обнаружена ошибка при обработке function CorrectYo:
строка    4:
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/share/vim/vimfiles/plugin/yospellchecker/spellchecker.py", line 225, in main
    spellchecker.necessary_correction()
  File "/usr/share/vim/vimfiles/plugin/yospellchecker/spellchecker.py", line 93, in necessary_correction
    self.buffer[matches[i].start():matches[i].end()] = replacement.encode()
AttributeError: 'NoneType' object has no attribute 'encode'