Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonathan Marten
Konsole
Commits
84a8ae68
Commit
84a8ae68
authored
Sep 22, 1999
by
Waldo Bastian
Browse files
WABA:
svn path=/branches/KDE_1_1_BRANCH/kdebase/konsole/; revision=29505
parent
49963c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/TEScreen.C
View file @
84a8ae68
...
...
@@ -1043,12 +1043,12 @@ char *TEScreen::getSelText(const BOOL preserve_line_breaks)
// allocate buffer for maximum possible size...
d
=
(
sel_BR
-
sel_TL
)
/
columns
+
1
;
m
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
d
*
(
columns
+
1
)
+
2
);
m
=
(
char
*
)
malloc
(
d
*
(
columns
+
1
)
+
2
);
d
=
0
;
while
(
s
<=
sel_BR
)
{
if
(
s
<
hist_BR
)
if
(
s
<
hist_BR
+
columns
)
{
// get lines from history buffer.
eol
=
histBuffer
[
hY
]
->
len
;
if
((
hY
==
(
sel_BR
/
columns
))
&&
(
eol
>=
(
sel_BR
%
columns
))
)
eol
=
sel_BR
%
columns
+
1
;
...
...
@@ -1088,7 +1088,7 @@ char *TEScreen::getSelText(const BOOL preserve_line_breaks)
if
(
(
eol
+
1
)
%
columns
==
0
)
{
if
(
image
[
eol
-
hist_BR
-
columns
].
c
==
' '
)
m
[
d
++
]
=
' '
;
}
else
m
[
d
++
]
=
(
preserve_line_breaks
||
((
eol
%
columns
)
==
0
)
?
'\n'
:
' '
);
else
m
[
d
++
]
=
(
(
preserve_line_breaks
||
((
eol
%
columns
)
==
0
)
)
?
'\n'
:
' '
);
}
s
=
(
eol
/
columns
+
1
)
*
columns
;
}
...
...
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