Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
76276177
Commit
76276177
authored
Jun 02, 2005
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug #1152762] Ensure _end_of_line() returns an x-coordinate that's within the text box
parent
d80ef02e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/curses/textpad.py
Lib/curses/textpad.py
+1
-1
No files found.
Lib/curses/textpad.py
View file @
76276177
...
...
@@ -53,7 +53,7 @@ class Textbox:
last
=
self
.
maxx
while
1
:
if
ascii
.
ascii
(
self
.
win
.
inch
(
y
,
last
))
!=
ascii
.
SP
:
last
=
last
+
1
last
=
min
(
self
.
maxx
,
last
+
1
)
break
elif
last
==
0
:
break
...
...
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