about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-13 05:10:55 -0500
committerJune McEnroe <june@causal.agency>2020-02-13 05:10:55 -0500
commita6bc2ea7c38814a5fd552826393cb870efdc263b (patch)
tree36f90312e5f17edc1ff85f47a46d337745654f93
parentRefactor windows into array and add /move (diff)
downloadcatgirl-a6bc2ea7c38814a5fd552826393cb870efdc263b.tar.gz
catgirl-a6bc2ea7c38814a5fd552826393cb870efdc263b.zip
Set swap correctly when closing a window
I knew I missed something.
Diffstat (limited to '')
-rw-r--r--ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index b1eedaf..2fbb720 100644
--- a/ui.c
+++ b/ui.c
@@ -797,6 +797,7 @@ static void windowClose(size_t num) {
 	if (windows.swap >= num) windows.swap--;
 	if (windows.show == num) {
 		windowShow(windows.swap);
+		windows.swap = windows.show;
 	} else if (windows.show > num) {
 		windows.show--;
 	}
amp;follow=1'>Add -c option to xxJune McEnroe 2016-09-12Add .bin/xx.cJune McEnroe 2016-09-08Rename colorscheme to lameJune McEnroe 2016-09-04Simplify colors syntax in zsh promptJune McEnroe 2016-08-29Color rubyStringDelimiter as StringJune McEnroe 2016-08-24Highlight rubyDefine as StructureJune McEnroe 2016-08-23Remove scroll bindings from nvim configJune McEnroe 2016-08-17Highlight Search with black foregroundJune McEnroe 2016-08-15Remove gruvboxJune McEnroe 2016-08-04Remove march from SSH configJune McEnroe 2016-08-01Disable tab indicators in iTermJune McEnroe 2016-07-30Color PreProc DarkGreenJune McEnroe 2016-07-29Color Structure and Typedef in grayJune McEnroe 2016-07-27Color comments DarkBlue and LightBlueJune McEnroe 2016-07-27Color macros in yellowJune McEnroe 2016-07-26Colorscheme colors and schemesJune McEnroe 2016-07-26Add ''subtle'' colorschemeJune McEnroe 2016-07-26Add htoprcJune McEnroe 2016-07-24Add may and refactor ssh configJune McEnroe 2016-07-18Disable cursorlineJune McEnroe 2016-07-18Use hard constrast gruvbox darkJune McEnroe 2016-07-15Remove vim configurationJune McEnroe 2016-07-15Add readline to README configurations listJune McEnroe 2016-07-15Add vendor script to READMEJune McEnroe 2016-07-15Pull latest pathogen and gruvboxJune McEnroe