From fac7cb922a098e2d8d310c335e7a7ed1611ce5cc Mon Sep 17 00:00:00 2001 From: Jean-Marc Date: Wed, 4 Mar 2015 22:13:20 +0100 Subject: [PATCH] Fix missing break in switch Fixes coverity issue 23350. --- src/BufferView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 7cb99cdf4d..8b48384803 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1112,13 +1112,13 @@ bool BufferView::getStatus(FuncRequest const & cmd, FuncStatus & flag) iss >> opt; flag.setEnabled(opt.repl_buf_name.empty() || !buffer_.isReadonly()); + break; } - case LFUN_LABEL_GOTO: { + case LFUN_LABEL_GOTO: flag.setEnabled(!cmd.argument().empty() || getInsetByCode(cur, REF_CODE)); break; - } case LFUN_CHANGES_TRACK: flag.setEnabled(true);