diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2007-05-28 17:52:18 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2007-05-28 17:52:18 +0000 |
commit | 633fb61fd27769e345a2323a1a7c27b72eabbd60 (patch) | |
tree | 86200b2cfe6aa878f52483b5ca8252b59e45e321 /usr.bin/mg/funmap.c | |
parent | 6a76768dd2d85f042f56371b350ace03bdd07047 (diff) |
Add a global-wd-mode command, which toggles between the current
behavior (every buffer maintains its own cwd) and the old behavior of
one global working directory. This makes it slightly easier to hack
on things like kernel code, where compilation, etc, are initiated from
a different directory than you are working in.
While here, fix setting/handling of global wd.
Diffstat (limited to 'usr.bin/mg/funmap.c')
-rw-r--r-- | usr.bin/mg/funmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/funmap.c b/usr.bin/mg/funmap.c index df46ed3fdad..f7e232886f4 100644 --- a/usr.bin/mg/funmap.c +++ b/usr.bin/mg/funmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: funmap.c,v 1.26 2006/12/21 18:06:02 kjell Exp $ */ +/* $OpenBSD: funmap.c,v 1.27 2007/05/28 17:52:17 kjell Exp $ */ /* * Copyright (c) 2001 Artur Grabowski <art@openbsd.org>. All rights reserved. * @@ -89,6 +89,7 @@ static struct funmap functnames[] = { #ifndef NO_MACRO {finishmacro, "end-kbd-macro",}, #endif /* !NO_MACRO */ + {globalwdtoggle, "global-wd-mode",}, {gotoeob, "end-of-buffer",}, {gotoeol, "end-of-line",}, {enlargewind, "enlarge-window",}, |