aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-03-11 00:26:44 -0500
committerJames McCoy <jamessan@jamessan.com>2017-03-11 20:32:39 -0500
commitd72c177b2a743e147e0386f97b07030b49247390 (patch)
tree72aeb690dabe2624cfd43c2b1da011270d15f467 /src/nvim/window.c
parent2ed2b1d505cc028347b579f677eb8e6bde9dacdd (diff)
downloadrneovim-d72c177b2a743e147e0386f97b07030b49247390.tar.gz
rneovim-d72c177b2a743e147e0386f97b07030b49247390.tar.bz2
rneovim-d72c177b2a743e147e0386f97b07030b49247390.zip
lint
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 00baa23306..bae7c2e7dc 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -168,10 +168,11 @@ newwindow:
break;
}
}
- if (wp == NULL)
+ if (wp == NULL) {
EMSG(_("E441: There is no preview window"));
- else
+ } else {
win_goto(wp);
+ }
break;
/* close all but current window */
@@ -3366,10 +3367,10 @@ void tabpage_move(int nr)
tp_dst = tp;
- /* Remove the current tab page from the list of tab pages. */
- if (curtab == first_tabpage)
+ // Remove the current tab page from the list of tab pages.
+ if (curtab == first_tabpage) {
first_tabpage = curtab->tp_next;
- else {
+ } else {
tp = NULL;
FOR_ALL_TABS(tp2) {
if (tp2->tp_next == curtab) {
@@ -3377,8 +3378,9 @@ void tabpage_move(int nr)
break;
}
}
- if (tp == NULL) /* "cannot happen" */
+ if (tp == NULL) { // "cannot happen"
return;
+ }
tp->tp_next = curtab->tp_next;
}