From 7bcb81839c4ac8160a1207efa27b78987f1ceb4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Szyma=C5=84ski?= Date: Mon, 27 Nov 2023 16:21:25 +0100 Subject: modelines plugin: add a shorter version of the 'textwidth' option ('tw') --- plugins/modelines/modeline-parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/modelines/modeline-parser.c') 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); -- cgit v1.2.1