diff options
author | Filip SzymaĆski <[email protected]> | 2023-11-27 16:21:25 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-12-11 15:24:04 +0100 |
commit | 7bcb81839c4ac8160a1207efa27b78987f1ceb4e (patch) | |
tree | becdb9d12ba75b45e3a23f067224ebac4ca935f2 /plugins | |
parent | e10e9e09260e2c0eacaff395d71d42281df7fc15 (diff) | |
download | pluma-7bcb81839c4ac8160a1207efa27b78987f1ceb4e.tar.bz2 pluma-7bcb81839c4ac8160a1207efa27b78987f1ceb4e.tar.xz |
modelines plugin: add a shorter version of the 'textwidth' option ('tw')
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/modelines/modeline-parser.c | 3 |
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); |