diff options
author | Lars Kotthoff <larsko@uwyo.edu> | 2018-10-27 17:45:16 -0600 |
---|---|---|
committer | Gaute Hope <eg@gaute.vetsj.com> | 2018-11-06 18:55:53 +0100 |
commit | 27b188786a60e5e388645408a2e1cb1d83e42e6c (patch) | |
tree | 42579716cf0055c195f6da3b3e8bd5449bd9b1b6 /src | |
parent | f94ba78d5ee172ce9f91730eea455c8b55dd054b (diff) |
normal behavior of backspace when at end of text and not on a space
Diffstat (limited to 'src')
-rw-r--r-- | src/command_bar.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command_bar.cc b/src/command_bar.cc index e18e107..eb39474 100644 --- a/src/command_bar.cc +++ b/src/command_bar.cc @@ -277,6 +277,9 @@ namespace Astroid { ustring_sz end = entry.get_position (); // normal behavior if we're not in between tags if (txt[end] != ' ' && end > 0 && end < txt.size ()) return false; + // normal behavior if we're at the end and the character is not a + // space -- assume editing tag + if (txt[end] != ' ' && end == txt.size ()) return false; ustring_sz start = end; // skip two spaces at the end if (start == txt.size ()) start--; |