aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-02-01 17:54:21 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-02-01 17:54:21 +0100
commit5d0ac898501bf0e43e221324f974f370e2d86771 (patch)
tree85880b1548de87e7af06903f7b6b3173b78fdfb6 /vis-core.h
parente6eb3e31ebfcd5d3fae63188ebaddc750b036140 (diff)
downloadvis-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis-core.h b/vis-core.h
index a1039a8..ab6e961 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -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);