diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-10-21 11:52:44 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-10-21 11:52:44 -0700 |
commit | d4bb541ec1ec93446ecfa53948a1a6f995fffb64 (patch) | |
tree | f357c585ca3a405da333ca93669da0ef9a2e3192 /grc/gui/Dialogs.py | |
parent | 015421b0a2a0042a6ce22f4e156b0e434a74be7c (diff) | |
parent | 16ffd0b5c30fed8cb17a73d722c883d76e8356da (diff) |
Merge branch 'maint'
Diffstat (limited to 'grc/gui/Dialogs.py')
-rw-r--r-- | grc/gui/Dialogs.py | 2 |
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 |