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
ae61f665
Commit
ae61f665
authored
5 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Don't set the API "changes" flag when just searching for text and editing
the find-text string.
parent
0fba11fc
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/uifc/uifc.h
+1
-0
1 addition, 0 deletions
src/uifc/uifc.h
src/uifc/uifc32.c
+3
-3
3 additions, 3 deletions
src/uifc/uifc32.c
with
4 additions
and
3 deletions
src/uifc/uifc.h
+
1
−
0
View file @
ae61f665
...
@@ -205,6 +205,7 @@
...
@@ -205,6 +205,7 @@
/* Input area (NOT outside of window!) */
/* Input area (NOT outside of window!) */
/* And ungets the mouse event. */
/* And ungets the mouse event. */
#define K_PASSWORD (1L<<16)
/* Does not display text while editing */
#define K_PASSWORD (1L<<16)
/* Does not display text while editing */
#define K_FIND (1L<<17)
/* Don't set the "changes" flag */
/* Extra exit flags */
/* Extra exit flags */
...
...
This diff is collapsed.
Click to expand it.
src/uifc/uifc32.c
+
3
−
3
View file @
ae61f665
...
@@ -1714,7 +1714,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
...
@@ -1714,7 +1714,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
case
CTRL_F
:
/* find */
case
CTRL_F
:
/* find */
case
CTRL_G
:
case
CTRL_G
:
if
(
/*!(api->mode&UIFC_NOCTRL)*/
1
)
{
// No no, *this* control key is fine!
if
(
/*!(api->mode&UIFC_NOCTRL)*/
1
)
{
// No no, *this* control key is fine!
if
(
gotkey
==
CTRL_G
||
api
->
input
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
"Find"
,
search
,
sizeof
(
search
),
K_EDIT
)
>
0
)
{
if
(
gotkey
==
CTRL_G
||
api
->
input
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
"Find"
,
search
,
sizeof
(
search
),
K_EDIT
|
K_FIND
)
>
0
)
{
for
(
j
=
(
*
cur
)
+
1
;
j
!=
*
cur
;
j
++
,
j
=
(
j
>=
opts
)
?
0
:
j
)
{
for
(
j
=
(
*
cur
)
+
1
;
j
!=
*
cur
;
j
++
,
j
=
(
j
>=
opts
)
?
0
:
j
)
{
if
(
strcasestr
(
option
[
j
],
search
)
!=
NULL
)
{
if
(
strcasestr
(
option
[
j
],
search
)
!=
NULL
)
{
// Copy/pasted from search above.
// Copy/pasted from search above.
...
@@ -2370,12 +2370,12 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
...
@@ -2370,12 +2370,12 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
if
(
mode
&
K_EDIT
)
if
(
mode
&
K_EDIT
)
{
{
truncspctrl
(
str
);
truncspctrl
(
str
);
if
(
strcmp
(
outstr
,
str
))
if
(
!
(
mode
&
K_FIND
)
&&
strcmp
(
outstr
,
str
))
api
->
changes
=
1
;
api
->
changes
=
1
;
}
}
else
else
{
{
if
(
j
)
if
(
!
(
mode
&
K_FIND
)
&&
j
)
api
->
changes
=
1
;
api
->
changes
=
1
;
}
}
strcpy
(
outstr
,
str
);
strcpy
(
outstr
,
str
);
...
...
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