diff options
Diffstat (limited to 'src/gui/gui-action.c')
-rw-r--r-- | src/gui/gui-action.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/gui-action.c b/src/gui/gui-action.c index 6529e1054..f8d36fbcd 100644 --- a/src/gui/gui-action.c +++ b/src/gui/gui-action.c @@ -414,7 +414,8 @@ gui_action_transpose_chars (t_gui_window *window) if (window->buffer->has_input) { - if (window->buffer->input_buffer_pos > 0) + if ((window->buffer->input_buffer_pos > 0) + && (window->buffer->input_buffer_length > 1)) { if (window->buffer->input_buffer_pos == window->buffer->input_buffer_length) window->buffer->input_buffer_pos--; |