Commit e379e3b285c90e4f4673b3ad3da324bae4cc95b0
Show messege when trying to explore empty file
Author: xaizek
Author date (UTC): 2012-02-18 13:01
Committer name: xaizek
Committer date (UTC): 2012-02-18 17:45
Parent(s): 5e0b3998be9e048ab997589fa61a328ffd1d26f1
Signing key:
Tree: c4b3f2f81b5b1bc496cf8860d7df679cbcb7a73a
File src/view.c changed (mode: 100644) (index fafe9d60a..85203dc15) |
... |
... |
enter_view_mode(int explore) |
231 |
231 |
fclose(fp); |
fclose(fp); |
232 |
232 |
|
|
233 |
233 |
if(vi->lines == NULL) |
if(vi->lines == NULL) |
|
234 |
|
{ |
|
235 |
|
(void)show_error_msg("File exploring", "Wont explore empty file"); |
234 |
236 |
return; |
return; |
|
237 |
|
} |
235 |
238 |
vi->widths = malloc(sizeof(*vi->widths)*vi->nlines); |
vi->widths = malloc(sizeof(*vi->widths)*vi->nlines); |
236 |
239 |
if(vi->widths == NULL) |
if(vi->widths == NULL) |
237 |
240 |
{ |
{ |