.gc and .gf commands are not performed when query is empty