Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1d86056a
Commit
1d86056a
authored
Jun 02, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better too long lines detection, added del key support in emacs mode.
parent
1ae26eba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
editline.c
win32/editline.c
+6
-7
No files found.
win32/editline.c
View file @
1d86056a
...
...
@@ -143,7 +143,7 @@ static inline void WCEL_GetRect(WCEL_Context* ctx, LPSMALL_RECT sr, int beg, int
static
BOOL
WCEL_Grow
(
WCEL_Context
*
ctx
,
size_t
len
)
{
if
(
ctx
->
csbi
.
dwCursorPosition
.
X
+
ctx
->
ofs
+
len
>=
ctx
->
csbi
.
dwSize
.
X
)
if
(
ctx
->
csbi
.
dwCursorPosition
.
X
+
ctx
->
len
+
len
>=
ctx
->
csbi
.
dwSize
.
X
)
{
FIXME
(
"Current implementation doesn't allow edition to spray across several lines
\n
"
);
return
FALSE
;
...
...
@@ -201,10 +201,8 @@ static void WCEL_InsertChar(WCEL_Context* ctx, WCHAR c)
WCHAR
buffer
[
2
];
/* do not insert 0..31 control characters */
if
(
c
<
' '
)
{
if
(
c
!=
'\t'
)
return
;
}
if
(
c
<
' '
&&
c
!=
'\t'
)
return
;
buffer
[
0
]
=
c
;
buffer
[
1
]
=
0
;
WCEL_InsertString
(
ctx
,
buffer
);
...
...
@@ -637,11 +635,12 @@ static KeyEntry EmacsKeyMapExtended[] =
{
{
/*RETURN*/
0x0d
,
WCEL_Done
},
{
/*VK_PRIOR*/
0x21
,
WCEL_MoveToPrevHist
},
{
/*VK_NEXT*/
0x22
,
WCEL_MoveToNextHist
},
{
/*VK_NEXT*/
0x22
,
WCEL_MoveToNextHist
},
{
/*VK_END*/
0x23
,
WCEL_MoveToEnd
},
{
/*VK_HOME*/
0x24
,
WCEL_MoveToBeg
},
{
/*VK_RIGHT*/
0x27
,
WCEL_MoveRight
},
{
/*VK_LEFT*/
0x25
,
WCEL_MoveLeft
},
{
/*VK_LEFT*/
0x25
,
WCEL_MoveLeft
},
{
/*VK_DEL*/
0x2e
,
WCEL_DeleteCurrChar
},
{
0
,
NULL
}
};
...
...
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