onivim / libvim

libvim: The core Vim editing engine as a minimal C library
https://v2.onivim.io
MIT License
691 stars 34 forks source link

Bugfix: Crash when ':set si' is used #187

Closed bryphe closed 4 years ago

bryphe commented 4 years ago

Issue: libvim currently crashes when smartindent is set and a new line is opened.

Fix: Turn off FEAT_SMARTINDENT - our plan is to offload the indentation logic to the consumer. In Onivim 2's case, we'll use the language configuration info to provide a smartindent-equivalent.

Related: https://github.com/onivim/oni2/issues/1417

Thanks @leavengood for the investigation!