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

fix(api): Autoindent - Allow values greater than 1 and less than -1 #210

Closed bryphe closed 4 years ago

bryphe commented 4 years ago

Currently, the auto-indent callback API only allows a single level of indentation change - but there are cases where we'd like to make greater changes in indentation.

This adjusts the auto-indent callback to support values greater than 1 and less than -1.