Bug 41000

Summary: Ошибка при обработке
Product: Sisyphus Reporter: Николай Пряхин <desmond>
Component: yospellcheckerAssignee: Fr. Br. George <george>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: george
Version: unstable   
Hardware: x86_64   
OS: Linux   
Attachments:
Description Flags
Пример none

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'