degesch: inline a condition
This commit is contained in:
parent
61ebbe245b
commit
7fed628d58
@ -1396,12 +1396,8 @@ on_readline_goto_buffer (int count, int key)
|
|||||||
if (n < 0 || n > 9)
|
if (n < 0 || n > 9)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// There's no zero-th buffer
|
|
||||||
if (n == 0)
|
|
||||||
n = 10;
|
|
||||||
|
|
||||||
struct app_context *ctx = g_ctx;
|
struct app_context *ctx = g_ctx;
|
||||||
if (!buffer_goto (ctx, n))
|
if (!buffer_goto (ctx, n == 0 ? 10 : n))
|
||||||
rl_ding ();
|
rl_ding ();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user