Skip to content

Commit d07a405

Browse files
committed
Fix name of LinePart member
1 parent 90ab512 commit d07a405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/autocomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def substitute(self, cursor_offset, line, match):
244244
"""Returns a cursor offset and line with match swapped in"""
245245
lpart = self.locate(cursor_offset, line)
246246
offset = lpart.start + len(match)
247-
changed_line = line[: lpart.start] + match + line[lpart.end :]
247+
changed_line = line[: lpart.start] + match + line[lpart.stop :]
248248
return offset, changed_line
249249

250250
@property

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy