diff --git a/ChangeLog b/ChangeLog index adec01247792a1a9757767ca1df316b2a005eaee..e75b05435998ae959c1205cd613d021214bdfab9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2015-02-15 Benno Schulenberg <bensberg@justemail.net> * src/file.c (do_lockfile): Also show the name of the affected file when finding a lock file, for when many files are opened at once. + * src/file.c (do_lockfile): The user does the editing, not the editor. 2015-02-09 Chris Allegretta <chrisa@asty.org> * nano.spec.in: Add dependency on texinfo, docdir files for diff --git a/src/files.c b/src/files.c index 5885358a02b6730b3817d0fd6d77d568c9559b79..65c151befbbb18ddb055edc0f180935c74c43191 100644 --- a/src/files.c +++ b/src/files.c @@ -293,8 +293,9 @@ int do_lockfile(const char *filename) fprintf(stderr, "user which created this lock file should be %s\n", lockuser); #endif - sprintf(promptstr, _("File %s is being edited (by %s, PID %d, user %s); continue?"), - filename, lockprog, lockpid, lockuser); + /* TRANSLATORS: The second %s is the name of the user, the third that of the editor. */ + sprintf(promptstr, _("File %s is being edited (by %s with %s, PID %d); continue?"), + filename, lockuser, lockprog, lockpid); ans = do_yesno_prompt(FALSE, promptstr); if (ans < 1) { blank_statusbar();