diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-01 17:54:21 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-01 17:54:21 +0100 |
| commit | 5d0ac898501bf0e43e221324f974f370e2d86771 (patch) | |
| tree | 85880b1548de87e7af06903f7b6b3173b78fdfb6 /vis-core.h | |
| parent | e6eb3e31ebfcd5d3fae63188ebaddc750b036140 (diff) | |
| download | vis-5d0ac898501bf0e43e221324f974f370e2d86771.tar.gz vis-5d0ac898501bf0e43e221324f974f370e2d86771.tar.xz | |
vis: refactor autoindent handling
Rather than inserting a newline and then looking for leading white space
of the previous line we now gather the white space before newline insertion.
Also we no longer indent empty lines.
Close #472
Diffstat (limited to 'vis-core.h')
| -rw-r--r-- | vis-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -242,6 +242,7 @@ void macro_operator_record(Vis *vis); void vis_do(Vis *vis); void action_reset(Action*); +size_t vis_text_insert_nl(Vis*, Text*, size_t pos); void mode_set(Vis *vis, Mode *new_mode); |
