Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
69adca05
Commit
69adca05
authored
2 months ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Load saved textedit.ini at start.
parent
a42f6a8e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/textedit.js
+17
-2
17 additions, 2 deletions
exec/textedit.js
with
17 additions
and
2 deletions
exec/textedit.js
+
17
−
2
View file @
69adca05
...
...
@@ -420,8 +420,24 @@ function check_undone()
}
}
function
load_saved
()
{
var
sfile
=
new
File
(
"
textedit.ini
"
);
if
(
!
sfile
.
open
(
'
r
'
))
return
;
var
keys
=
sfile
.
iniGetKeys
();
var
key
;
var
str
;
for
(
key
in
keys
)
{
str
=
sfile
.
iniGetValue
(
null
,
keys
[
key
]);
bbs
.
replace_text
(
keys
[
key
],
str
);
}
sfile
.
close
();
}
get_tvals
();
newmsg
();
load_saved
();
var
done
=
false
;
var
skip_redraw
=
false
;
var
forcectrl
=
false
;
...
...
@@ -489,9 +505,8 @@ while (!done) {
sfile
=
new
File
(
"
textedit.ini
"
);
if
(
!
sfile
.
open
(
sfile
.
exists
?
'
r+
'
:
'
w+
'
))
break
;
for
(
tmp
in
modified
)
{
for
(
tmp
in
modified
)
sfile
.
iniSetValue
(
null
,
tnames
[
tmp
],
bbs
.
text
(
tmp
));
}
sfile
.
close
();
break
;
case
'
\
b
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment