| To: vim-dev@vim.org |
| Subject: patch 7.1.131 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.1.131 |
| Problem: ":mksession" always adds ":setlocal autoread". (Christian J. |
| Robinson) |
| Solution: Skip boolean global/local option using global value. |
| Files: src/option.c |
| |
| |
| |
| |
| |
| *** 8753,8758 **** |
| --- 8753,8760 ---- |
| char *name; |
| int value; |
| { |
| + if (value < 0) /* global/local option using global value */ |
| + return OK; |
| if (fprintf(fd, "%s %s%s", cmd, value ? "" : "no", name) < 0 |
| || put_eol(fd) < 0) |
| return FAIL; |
| |
| |
| |
| *** 668,669 **** |
| --- 668,671 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 131, |
| /**/ |
| |
| -- |
| ARTHUR: Old woman! |
| DENNIS: Man! |
| ARTHUR: Man. I'm sorry. Old man, What knight live in that castle over there? |
| DENNIS: I'm thirty-seven. |
| "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ download, build and distribute -- http://www.A-A-P.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |