Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
a377bcc2
Commit
a377bcc2
authored
Mar 31, 2019
by
rswindell
Browse files
Enable the "Word-wrap Quoted Text" (QUOTEWRAP) editor setting by default.
Updated help text and option name, a bit.
parent
79135d3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
src/sbbs3/scfg/scfgxtrn.c
src/sbbs3/scfg/scfgxtrn.c
+12
-6
No files found.
src/sbbs3/scfg/scfgxtrn.c
View file @
a377bcc2
...
...
@@ -131,6 +131,7 @@ static bool new_external_editor(unsigned new_xedit_num)
return
false
;
}
memset
(
new_xedit
,
0
,
sizeof
(
*
new_xedit
));
new_xedit
->
misc
|=
QUOTEWRAP
;
xedit_t
**
new_xedit_list
=
realloc
(
cfg
.
xedit
,
sizeof
(
xedit_t
*
)
*
(
cfg
.
total_xedits
+
1
));
if
(
new_xedit_list
==
NULL
)
{
...
...
@@ -1651,7 +1652,7 @@ void xedit_cfg()
,
cfg
.
xedit
[
i
]
->
misc
&
XTRN_NATIVE
?
"Yes"
:
"No"
);
sprintf
(
opt
[
k
++
],
"%-32.32s%s"
,
"Use Shell to Execute"
,
cfg
.
xedit
[
i
]
->
misc
&
XTRN_SH
?
"Yes"
:
"No"
);
sprintf
(
opt
[
k
++
],
"%-32.32s%s"
,
"Word
W
rap Quoted Text"
sprintf
(
opt
[
k
++
],
"%-32.32s%s"
,
"Word
-w
rap Quoted Text"
,
cfg
.
xedit
[
i
]
->
misc
&
QUOTEWRAP
?
"Yes"
:
"No"
);
sprintf
(
opt
[
k
++
],
"%-32.32s%s"
,
"Automatically Quoted Text"
,
cfg
.
xedit
[
i
]
->
misc
&
QUOTEALL
?
"All"
:
cfg
.
xedit
[
i
]
->
misc
&
QUOTENONE
...
...
@@ -1670,8 +1671,8 @@ void xedit_cfg()
"
\n
"
"This menu allows you to change the settings for the selected external
\n
"
"message editor. External message editors are very common on BBSs. Some
\n
"
"popular editors include `
SyncEdit`, `WWIVe
dit`, `
F
Edit`, `
GE
dit`, `
Ice
Edit`,
\n
"
"and many others.
\n
"
"popular editors include `
fseditor.js`, `SyncE
dit`, `
Sly
Edit`, `
WWIVe
dit`, `
F
Edit`,
\n
"
"
`GEdit`, `IceEdit`,
and many others.
\n
"
;
sprintf
(
str
,
"%s Editor"
,
cfg
.
xedit
[
i
]
->
name
);
...
...
@@ -1825,12 +1826,17 @@ void xedit_cfg()
case
7
:
k
=
(
cfg
.
xedit
[
i
]
->
misc
&
QUOTEWRAP
)
?
0
:
1
;
uifc
.
helpbuf
=
"`Word
W
rap Quoted Text:`
\n
"
"`Word
-w
rap Quoted Text:`
\n
"
"
\n
"
"FIXME
\n
"
"Set to `Yes` to have Synchronet word-wrap quoted message text when
\n
"
"creating the quote file (e.g. QUOTES.TXT) or initial message text file
\n
"
"(e.g. MSGTMP) used by some external message editors.
\n
"
"
\n
"
"When set to `No`, the original unmodified message text is written to the
\n
"
"quote / message text file."
;
switch
(
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
k
,
0
,
"Word
W
rap Quoted Text"
,
uifcYesNoOpts
))
{
,
"Word
-w
rap Quoted Text"
,
uifcYesNoOpts
))
{
case
0
:
if
(
!
(
cfg
.
xedit
[
i
]
->
misc
&
QUOTEWRAP
))
{
cfg
.
xedit
[
i
]
->
misc
|=
QUOTEWRAP
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment