Skip to content

Commit

Permalink
Version 1.0: - make relative path simplification work on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wincent authored and vim-scripts committed Nov 27, 2010
1 parent 031807f commit 3a82bd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion doc/command-t.txt
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ The latest release will always be available from there.
Development in progress can be inspected via the project's Git repository
browser at:

http://git.wincent.com/command-t.git
https://wincent.com/repos/command-t

A copy of each release is also available from the official Vim scripts site
at:
Expand Down Expand Up @@ -621,6 +621,10 @@ POSSIBILITY OF SUCH DAMAGE.

HISTORY *command-t-history*

1.0 (26 November 2010)

- make relative path simplification work on Windows

1.0b (5 November 2010)

- work around platform-specific Vim 7.3 bug seen by some users (wherein
Expand Down
3 changes: 2 additions & 1 deletion ruby/command-t/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ def get_list_or_string name
def relative_path_under_working_directory path
# any path under the working directory will be specified as a relative
# path to improve the readability of the buffer list etc
path.index(pwd = "#{VIM::pwd}/") == 0 ? path[pwd.length..-1] : path
pwd = File.expand_path(VIM::pwd) + '/'
path.index(pwd) == 0 ? path[pwd.length..-1] : path
end

# Backslash-escape space, \, |, %, #, "
Expand Down

0 comments on commit 3a82bd5

Please sign in to comment.