editorconfig / editorconfig-gedit

EditorConfig plugin for Gedit
http://editorconfig.org
Other
54 stars 13 forks source link

Silently ignore 'end_of_line' due to deprecated 'newline-type' property #23

Closed ferdnyc closed 4 years ago

ferdnyc commented 4 years ago

Catch the TypeError exception and silently discard the setting, which is at least better than printing a traceback every time. The replacement GtkSourceFile.newline-type property is read-only, so we can't use it.

Fixes #15

xuhdev commented 4 years ago

Thanks! Could you also add the following to the comment?

The replacement GtkSourceFile.newline-type property is read-only, so we can't use it.

ferdnyc commented 4 years ago

@xuhdev Sure, done! (Edit: Er, now it's done.)

xuhdev commented 4 years ago

Thanks!