Skip to content

Commit 6444bc3

Browse files
committed
Set DEFAULT_EDITOR to notepad.exe on Windows, as per recent discussion.
1 parent b9d8ea2 commit 6444bc3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bin/psql/settings.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.21 2004/08/29 05:06:54 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.22 2004/11/17 18:32:31 tgl Exp $
77
*/
88
#ifndef SETTINGS_H
99
#define SETTINGS_H
@@ -15,7 +15,12 @@
1515

1616
#define DEFAULT_FIELD_SEP "|"
1717
#define DEFAULT_RECORD_SEP "\n"
18+
19+
#if defined(WIN32) || defined(__CYGWIN__)
20+
#define DEFAULT_EDITOR "notepad.exe"
21+
#else
1822
#define DEFAULT_EDITOR "vi"
23+
#endif
1924

2025
#define DEFAULT_PROMPT1 "%/%R%# "
2126
#define DEFAULT_PROMPT2 "%/%R%# "

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy