| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a0f2e2a commit f9fa7e8
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -736,6 +736,7 @@ def update_completion(self, tab=False): | |||
| 736 | 736 | self.list_win_visible = BpythonRepl.complete(self, tab) | |
| 737 | 737 | ||
| 738 | 738 | def predicted_indent(self, line): | |
| 739 | + #TODO get rid of this! It's repeated code! Combine with Repl. | ||
| 739 | 740 | logger.debug('line is %r', line) | |
| 740 | 741 | indent = len(re.match(r'[ ]*', line).group()) | |
| 741 | 742 | if line.endswith(':'): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -902,7 +902,8 @@ def undo(self, n=1): | |||
| 902 | 902 | entries = list(self.rl_history.entries) | |
| 903 | 903 | ||
| 904 | 904 | self.history = self.history[:-n] | |
| 905 | - if n == 1 and not self.done: | ||
| 905 | + if (n == 1 and self.buffer and | ||
| 906 | + hasattr(self, 'take_back_buffer_line')): | ||
| 906 | 907 | self.take_back_buffer_line() | |
| 907 | 908 | else: | |
| 908 | 909 | self.reevaluate() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments