Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
b83daebe
Commit
b83daebe
authored
Feb 17, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ctrl characters from input
parent
47007d53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
wb/lib/wb/src/wb_watt.cpp
wb/lib/wb/src/wb_watt.cpp
+7
-0
No files found.
wb/lib/wb/src/wb_watt.cpp
View file @
b83daebe
...
...
@@ -352,9 +352,16 @@ static void watt_activate_cmd_input( Widget w, WAtt *watt, XmAnyCallbackStruct *
static
void
watt_activate_cmd_scrolled_ok
(
Widget
w
,
WAtt
*
watt
,
XmAnyCallbackStruct
*
data
)
{
char
*
text
;
unsigned
char
*
s
;
int
sts
;
text
=
XmTextGetString
(
watt
->
cmd_scrolledinput
);
// Replace ctrl characters with space
for
(
s
=
(
unsigned
char
*
)
text
;
*
s
;
s
++
)
{
if
(
*
s
<
' '
&&
*
s
!=
10
&&
*
s
!=
13
)
*
s
=
' '
;
}
if
(
watt
->
input_open
)
{
sts
=
((
WAttNav
*
)
watt
->
wattnav
)
->
set_attr_value
(
watt
->
input_node
,
...
...
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