summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/modelines/modeline-parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c
index c86309e6..8f1866e2 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -329,7 +329,8 @@ parse_vim_modeline (gchar *s,
options->set |= MODELINE_SET_WRAP_MODE;
}
- else if (strcmp (key->str, "textwidth") == 0)
+ else if (strcmp (key->str, "tw") == 0 ||
+ strcmp (key->str, "textwidth") == 0)
{
intval = atoi (value->str);