| Index: bus/ibusimpl.c
|
| diff --git a/bus/ibusimpl.c b/bus/ibusimpl.c
|
| index a531ca9f102b9263b44cdb2d6ed599acd79c4ef6..3c753dde6b0b9e3a421b9b3e59f14700c36c79a2 100644
|
| --- a/bus/ibusimpl.c
|
| +++ b/bus/ibusimpl.c
|
| @@ -976,6 +976,14 @@ bus_ibus_impl_context_request_previous_engine (BusIBusImpl *ibus,
|
| engine_name = ibus->global_previous_engine_name;
|
| }
|
|
|
| + /*
|
| + * If the previous engine name is not found, switch to the next engine
|
| + * in the menu. This behavior is better than doing nothing.
|
| + */
|
| + if (!engine_name) {
|
| + bus_ibus_impl_context_request_next_engine_in_menu(ibus, context);
|
| + return;
|
| + }
|
| _context_request_engine_cb (context, engine_name, ibus);
|
| }
|
|
|
|
|