Skip to content

Commit 84f349c

Browse files
committed
better completion detection...
Needed for emscripten
1 parent a0895d6 commit 84f349c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

trepan/interfaces/user.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Copyright (C) 2009-2010, 2013-2015,
4-
# 2017-2018, 2020, 2023-2024 Rocky Bernstein <rocky@gnu.org>
4+
# 2017-2018, 2020, 2023-2025 Rocky Bernstein <rocky@gnu.org>
55
#
66
# This program is free software: you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -53,6 +53,9 @@
5353
except ImportError:
5454
def write_history_file(histfile: str):
5555
return
56+
have_complete = False
57+
else:
58+
have_complete = False
5659

5760
class UserInterface(TrepanInterface):
5861
"""Interface when communicating with the user in the same
@@ -70,7 +73,7 @@ def __init__(self, inp=None, out=None, opts={}):
7073
self.histfile = None
7174

7275
if self.input.use_history():
73-
self.complete = self.user_opts["complete"]
76+
self.complete = self.user_opts["complete"] and have_complete
7477
if self.complete:
7578
parse_and_bind("tab: complete")
7679
set_completer(self.complete)

trepan/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# debugger version number.
66

77
# fmt: off
8-
__version__="1.3.1" # noqa
8+
__version__="1.3.2.dev0" # noqa

0 commit comments

Comments
 (0)