summaryrefslogtreecommitdiff
path: root/usr.bin/mg/mg.1
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2012-10-22 08:31:43 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2012-10-22 08:31:43 +0000
commit894d1e27e363f283d4f4345d495c69662628068a (patch)
treea8ab51a73667b6a7eae41a29c8d58bdb5b063748 /usr.bin/mg/mg.1
parentd801589fb7c8f9f2a6cb773ecfe2409799fc90db (diff)
Add (r)evert prompt to "File changed on disk; really edit the buffer"
prompt. input, ok lum@, man bit ok jmc@, ok benno@
Diffstat (limited to 'usr.bin/mg/mg.1')
-rw-r--r--usr.bin/mg/mg.111
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/mg/mg.1 b/usr.bin/mg/mg.1
index baab1863ce1..e47474365ee 100644
--- a/usr.bin/mg/mg.1
+++ b/usr.bin/mg/mg.1
@@ -1,7 +1,7 @@
-.\" $OpenBSD: mg.1,v 1.69 2012/10/12 21:13:47 jasper Exp $
+.\" $OpenBSD: mg.1,v 1.70 2012/10/22 08:31:42 florian Exp $
.\" This file is in the public domain.
.\"
-.Dd $Mdocdate: October 12 2012 $
+.Dd $Mdocdate: October 22 2012 $
.Dt MG 1
.Os
.Sh NAME
@@ -51,6 +51,13 @@ At present, windows may only be split horizontally, so each window is
delineated by a modeline at the bottom.
If changes are made to a buffer, it will be reflected in all open windows.
.Pp
+If a file is changed outside
+.Nm
+and its buffer is about to be changed,
+.Nm
+prompts if the change should go ahead (y), not go ahead (n) or if the buffer
+should be reverted (r) to the latest file on disk.
+.Pp
If a buffer name begins and ends with an asterisk, the buffer is considered
throwaway; i.e. the user will not be prompted to save changes when
the buffer is killed.