summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-10-21 11:52:30 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-10-21 11:52:30 -0700
commit16ffd0b5c30fed8cb17a73d722c883d76e8356da (patch)
treef45801527b0caba5ffcf0b45866a6e4999fdd3aa
parentff8d4abb2973b487f94f2ff0dcacda53a51a2093 (diff)
parentdc5a05d68888a9924d1f15bc58a80c7e54bfffe0 (diff)
Merge remote-tracking branch 'skoslowski/issue1043' into maint
-rw-r--r--grc/gui/Dialogs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/Dialogs.py b/grc/gui/Dialogs.py
index 1d114356c8..83ad9651b2 100644
--- a/grc/gui/Dialogs.py
+++ b/grc/gui/Dialogs.py
@@ -72,7 +72,7 @@ class TextDisplay(SimpleTextDisplay):
# for each \b delete one char from the buffer
back_count = 0
start_iter = self.get_buffer().get_end_iter()
- while line[back_count] == '\b':
+ while len(line) > back_count and line[back_count] == '\b':
# stop at the beginning of a line
if not start_iter.starts_line(): start_iter.backward_char()
back_count += 1