Mercurial > vim
comparison src/workshop.c @ 2267:c08f91142c41 vim73
Crypt the swapfile.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 21 Jun 2010 06:15:46 +0200 |
parents | 1bac28a53fae |
children | 941ff1cd317a |
comparison
equal
deleted
inserted
replaced
2266:ae2e615a7320 | 2267:c08f91142c41 |
---|---|
1302 filename, lnum); */ | 1302 filename, lnum); */ |
1303 load_buffer_by_name(filename, lnum); | 1303 load_buffer_by_name(filename, lnum); |
1304 } | 1304 } |
1305 else | 1305 else |
1306 { | 1306 { |
1307 #ifdef FEAT_WINDOWS | |
1307 /* buf is in a window */ | 1308 /* buf is in a window */ |
1308 if (win != curwin) | 1309 if (win != curwin) |
1309 { | 1310 { |
1310 win_enter(win, False); | 1311 win_enter(win, False); |
1311 /* wsdebug("load_window: window endter %s\n", | 1312 /* wsdebug("load_window: window enter %s\n", |
1312 win->w_buffer->b_sfname); */ | 1313 win->w_buffer->b_sfname); */ |
1313 } | 1314 } |
1315 #endif | |
1314 if (lnum > 0 && win->w_cursor.lnum != lnum) | 1316 if (lnum > 0 && win->w_cursor.lnum != lnum) |
1315 { | 1317 { |
1316 warp_to_pc(lnum); | 1318 warp_to_pc(lnum); |
1317 /* wsdebug("load_window: warp to %s[%d]\n", | 1319 /* wsdebug("load_window: warp to %s[%d]\n", |
1318 win->w_buffer->b_sfname, lnum); */ | 1320 win->w_buffer->b_sfname, lnum); */ |