From 5d0ac898501bf0e43e221324f974f370e2d86771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 1 Feb 2017 17:54:21 +0100 Subject: 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 --- vis-core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vis-core.h') 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); -- cgit v1.2.3