diff --git a/README.md b/README.md index d29b324..c386436 100644 --- a/README.md +++ b/README.md @@ -240,18 +240,18 @@ Get the current directory `open_float(dir)` \ Open oil browser in a floating window -| Param | Type | Desc | -| ----- | ------------- | ----------------------------------------------------------- | -| dir | `nil\|string` | When nil, open the parent of the current buffer, or the cwd | +| Param | Type | Desc | +| ----- | ------------- | ------------------------------------------------------------------------------------------- | +| dir | `nil\|string` | When nil, open the parent of the current buffer, or the cwd if current buffer is not a file | ### open(dir) `open(dir)` \ Open oil browser for a directory -| Param | Type | Desc | -| ----- | ------------- | ----------------------------------------------------------- | -| dir | `nil\|string` | When nil, open the parent of the current buffer, or the cwd | +| Param | Type | Desc | +| ----- | ------------- | ------------------------------------------------------------------------------------------- | +| dir | `nil\|string` | When nil, open the parent of the current buffer, or the cwd if current buffer is not a file | ### close() diff --git a/doc/oil.txt b/doc/oil.txt index 09c663f..ab6f145 100644 --- a/doc/oil.txt +++ b/doc/oil.txt @@ -114,14 +114,14 @@ open_float({dir}) *oil.open_floa Parameters: {dir} `nil|string` When nil, open the parent of the current buffer, or the - cwd + cwd if current buffer is not a file open({dir}) *oil.open* Open oil browser for a directory Parameters: {dir} `nil|string` When nil, open the parent of the current buffer, or the - cwd + cwd if current buffer is not a file close() *oil.close* Restore the buffer that was present when oil was opened