aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-01-04 20:35:21 -0800
committerMatthias Braun <matze@braunis.de>2015-01-04 20:49:06 -0800
commit1dba77b9704734cae7d1d683ae0f5d88acb3ed9a (patch)
treeaa757e9dd02419b3500e8831820612478b2b4ba3 /editor.h
parentc8d9e1d3d9f947f511e2ab395fae2d2710454c3e (diff)
downloadvis-1dba77b9704734cae7d1d683ae0f5d88acb3ed9a.tar.gz
vis-1dba77b9704734cae7d1d683ae0f5d88acb3ed9a.tar.xz
implement rudimentary autoindent
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h1
1 files changed, 1 insertions, 0 deletions
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);