From 1dba77b9704734cae7d1d683ae0f5d88acb3ed9a Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sun, 4 Jan 2015 20:35:21 -0800 Subject: implement rudimentary autoindent --- editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 5dcb122..2cc097f 100644 --- a/editor.h +++ b/editor.h @@ -108,6 +108,7 @@ struct Editor { void (*statusbar)(EditorWin*); /* configurable user hook to draw statusbar */ int tabwidth; /* how many spaces should be used to display a tab */ bool expandtab; /* whether typed tabs should be converted to spaces */ + bool autoindent; /* whether indentation should be copied from previous line on newline */ }; Editor *editor_new(int width, int height); -- cgit v1.2.3